Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Diskussionsforum
  • Search

[MySQL] Frage zum Login via MYSQL_PWD

Unterhaltung über Gentoo und andere Themen: Alles was nicht in ein Support-Forum gehört.
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Author
Message
3PO
Veteran
Veteran
User avatar
Posts: 1110
Joined: Sun Nov 26, 2006 11:38 am
Location: Schwabenländle

[MySQL] Frage zum Login via MYSQL_PWD

  • Quote

Post by 3PO » Sun Jul 10, 2016 5:19 pm

Hallo Zusammen,

ich habe ein kleines Problem mit dem Login in MySQL.

Folgendes funktioniert:

Code: Select all

server01 ~ # mysql -u epg2vdr -pepg -D epg2vdr -e "SHOW GRANTS;"
Warning: Using a password on the command line interface can be insecure.
+-----------------------------------------------------------------------------+
| Grants for epg2vdr@localhost                                                |
+-----------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'epg2vdr'@'localhost' IDENTIFIED BY PASSWORD <secret> |
| GRANT ALL PRIVILEGES ON `epg2vdr`.* TO 'epg2vdr'@'localhost'                |
+-----------------------------------------------------------------------------+
server01 ~ #
Und folgendes funktioniert nicht:

Code: Select all

server01 ~ # export MYSQL_PWD='epg'
server01 ~ # mysql -u epg2vdr -D epg2vdr -e "SHOW GRANTS;"
ERROR 1045 (28000): Access denied for user 'epg2vdr'@'localhost' (using password: YES)
server01 ~ #
Was aber seltsam ist, ist dass es auf einem anderen PC funktioniert:

Code: Select all

vdr01_64 ~ # export MYSQL_PWD=epg
vdr01_64 ~ # mysql -u epg2vdr -e "SHOW GRANTS;"
+-----------------------------------------------------------------------------+
| Grants for epg2vdr@localhost                                                |
+-----------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'epg2vdr'@'localhost' IDENTIFIED BY PASSWORD <secret> |
| GRANT ALL PRIVILEGES ON `epg2vdr`.* TO 'epg2vdr'@'localhost'                |
+-----------------------------------------------------------------------------+
vdr01_64 ~ #
Hat Jemand eine Idee wo da der Denkfehler liegen könnte?
Top
3PO
Veteran
Veteran
User avatar
Posts: 1110
Joined: Sun Nov 26, 2006 11:38 am
Location: Schwabenländle

  • Quote

Post by 3PO » Sun Jul 10, 2016 7:19 pm

Gelöst!

Ich hatte irgendwann mal eine "~/.my.cnf" erstellt und wenn die existiert, geht wohl das exportieren nicht.
Top
Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Diskussionsforum”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic