On Ubuntu (running as a guest OS on VirtualBox, with Windows 7 as Host OS):
I have successfully installed mysql, running as a server. phpMyAdmin works fine -- create & browse DB's on my local machine, other php software running on my local apache instance work fine.
However, when I try to start mysql from the command line:
# mysql -u<username> -p<password>
I get:
ERROR 1045 (28000): Access denied for user '<username>'@'12.158.<my>.<ip>'
which works perfectly well from phpMyAdmin, using same username/password.
Even more oddly, when I try:
# mysql -hlocalhost -u<username> -p<password>
I appear to be able to log in, but then exit immediately with the error:
ERROR 1049 (42000): Unknown database 'XYZ'
Now the strange thing, XYZ doesn't exist in the DB on my local server, but DOES exist on another server on my network.
Something seems seriously wrong here, and I don't know enought about mysql configuration to figure it out. Any pointers appreciated. Like, are there any .initialization files mysql looks at when it starts?
I have successfully installed mysql, running as a server. phpMyAdmin works fine -- create & browse DB's on my local machine, other php software running on my local apache instance work fine.
However, when I try to start mysql from the command line:
# mysql -u<username> -p<password>
I get:
ERROR 1045 (28000): Access denied for user '<username>'@'12.158.<my>.<ip>'
which works perfectly well from phpMyAdmin, using same username/password.
Even more oddly, when I try:
# mysql -hlocalhost -u<username> -p<password>
I appear to be able to log in, but then exit immediately with the error:
ERROR 1049 (42000): Unknown database 'XYZ'
Now the strange thing, XYZ doesn't exist in the DB on my local server, but DOES exist on another server on my network.
Something seems seriously wrong here, and I don't know enought about mysql configuration to figure it out. Any pointers appreciated. Like, are there any .initialization files mysql looks at when it starts?