LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-03-2011, 10:35 AM   #1
thoufiq
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Rep: Reputation: Disabled
Access Denied for User-Upgrading to Mysql5.5


Hello All,
When am trying to upgrade from mysql5.1 to mysql5.5, i got many errors and at-last i upgraded to mysql5.5. It is going inside the mysql root and have permissions to create new databases, but still i am facing one problem is when giving command mysql_upgrade, i got error like this

root@dhcppc4:~# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
Running 'mysql_fix_privilage_tables'...
ERROR 1044 (42000): Access denied for user ''@' localhost to database 'mysql'
FATAL ERROR: Upgrade failed

Can anyone suggest me to resolve this error.

Thanks in advance.
 
Old 05-03-2011, 11:07 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
You need to pass a user to mysql_upgrade by using the -u option. This user needs to have full access to the databases on this server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading from Mysql5.1 to Mysql5.5 thoufiq Linux - Server 2 04-29-2011 01:09 AM
User Access Denied dhUmra Linux - General 1 06-06-2005 06:57 PM
MySQL: 'access denied for user' turbo_acura Linux - General 1 10-20-2004 09:34 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 03:30 AM
MYSQL access denied for user c0c0deuz Linux - General 1 03-18-2003 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration