On 11/09/2010 08:36 PM, sczlittle wrote:
>
> I think I screwed up my Administrative username in mysql.
>
> mysql -u root mysql
> ERROR 1044 (42000): Access denied for user ‘’@‘localhost’ to database
> ‘mysql’
>
> Can I just copy all the files in /var/lib/mysql >>reinstall MySQL >>
> copy all the old folders into the new /var/lib/mysql ( while MySql is
> off)
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Once you’re in with that option you can do whatever you want, including
recreate root, or find out which username it is;
use mysql;
select Host, User from mysql;
Good luck.
On 11/09/2010 09:36 PM, sczlittle wrote:
>
> I tried that but it appears the username root isn’t the username
> anymore.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
What’s the error phpMyAdmin returns? Does the user it uses work via MySQL
Administrator or were you using a different user? What do your Apache
logs show when trying to use phpMyAdmin? How is phpMyAdmin configured to
authenticate (I seem to recall it had three different options a few years
ago)?
Good luck.
On 11/10/2010 06:36 AM, sczlittle wrote:
>
> Ok have it fixed, sort of. I now can’t connect with phpMyAdmin or
> Webmin. Any ideas? MySQL Adminastrator works.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
phpMyAdmin says “Wrong username/password. Access denied.” I’m using the root and password that I used for MySQL
Administrator.
Apache log for today:
[Wed Nov 10 00:14:37 2010] [notice] caught SIGTERM, shutting down
[Wed Nov 10 00:15:35 2010] [notice] Apache/2.2.15 (Linux/SUSE) mod_ssl/2.2.15 OpenSSL/1.0.0 PHP/5.3.3 configured – resuming normal operations
[Wed Nov 10 00:30:48 2010] [notice] caught SIGTERM, shutting down
[Wed Nov 10 07:46:34 2010] [notice] Apache/2.2.15 (Linux/SUSE) mod_ssl/2.2.15 OpenSSL/1.0.0 PHP/5.3.3 configured – resuming normal operations
[Wed Nov 10 09:16:06 2010] [error] [client 192.168.0.3] File does not exist: /srv/www/htdocs/phpMyAdmin/scripts
[Wed Nov 10 09:17:55 2010] [error] [client 192.168.0.3] Invalid method in request \x16\x03\x01
The phpMyAdmin authenticate? I am running the almost duplicate configuration on my laptop. I downloaded phpMyAdmin from the 1-click install on the laptop first then my server. I have been playing with Yabs on my laptop and wanted to move it to my server.
Never had these problems with Mysql, Webmin, or phpMyAdmin.
Login to MySQL and run the following and post the results, possibly
changing slightly the Password column’s values just for fun:
use mysql;
select Host, User, Password from user;
I’m guessing your ‘root’ user is only allowed from something like
‘localhost’ and it may be coming from something (via phpMyAdmin) like your
hostname, which according to MySQL, is different. MySQL’s right are based
on username, password, and the host from which the connection originates.
Using ‘%’ as the Host value means the login can come from anywhere and
may be an easy test to see if it improves things. Having the output from
above (with passwords obfuscated if you’d like) could confirm this.
Good luck.
On 11/10/2010 08:06 PM, sczlittle wrote:
>
> phpMyAdmin says “Wrong username/password. Access denied.” I’m using the
> root and password that I used for MySQL
> Administrator.
>
> Apache log for today:
> [Wed Nov 10 00:14:37 2010] [notice] caught SIGTERM, shutting down
> [Wed Nov 10 00:15:35 2010] [notice] Apache/2.2.15 (Linux/SUSE)
> mod_ssl/2.2.15 OpenSSL/1.0.0 PHP/5.3.3 configured – resuming normal
> operations
> [Wed Nov 10 00:30:48 2010] [notice] caught SIGTERM, shutting down
> [Wed Nov 10 07:46:34 2010] [notice] Apache/2.2.15 (Linux/SUSE)
> mod_ssl/2.2.15 OpenSSL/1.0.0 PHP/5.3.3 configured – resuming normal
> operations
> [Wed Nov 10 09:16:06 2010] [error] [client 192.168.0.3] File does not
> exist: /srv/www/htdocs/phpMyAdmin/scripts
> [Wed Nov 10 09:17:55 2010] [error] [client 192.168.0.3] Invalid method
> in request \x16\x03\x01
>
> The phpMyAdmin authenticate? I am running the almost duplicate
> configuration on my laptop. I downloaded phpMyAdmin from the 1-click
> install on the laptop first then my server. I have been playing with
> ‘Yabs’ (http://openyabs.org) on my laptop and wanted to move it to my
> server.
>
> Never had these problems with Mysql, Webmin, or phpMyAdmin.
>
> Thanks for your help…
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
I Just removed phpMyadmin and shut down the server. Before I shut down the server I manually backed up Mysql and i noticed there was a problem with using localhost and the ip number. I lost “user administration” in the GUI of MySql Administration. I will reinstall phpMyAdmin tomorrow and recheck. I did notice that had ‘%’ was set. I’ll let you know.
I then logged into mysql via mysql administrator and saw root under localhost had no assigned privileges . I assigned them and everything started to work even webmin. I did notice that now under phpMyAdmin root@localhost I was not granted ALL PRIVILEGES and when I tried I got >> 1045 - Access denied for user ‘root@localhost’ (using password yes) . I then went to webmin and gave all privileges and now phpMyAdmin sees all privileges. Very Odd but everything seems to work now.
Well done. Thank-you for posting back your results.
Good luck.
On 11/11/2010 05:06 PM, sczlittle wrote:
>
> I then logged into mysql via mysql administrator and saw root under
> localhost had no assigned privileges . I assigned them and everything
> started to work even webmin. I did notice that now under phpMyAdmin
> root@localhost I was not granted ALL PRIVILEGES and when I tried I got
>>> 1045 - Access denied for user ‘root@localhost’ (using password yes)
> . I then went to webmin and gave all privileges and now phpMyAdmin sees
> all privileges. Very Odd but everything seems to work now.
>
> Thanks again for your help and input.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/