Computing.Net > Forums > Linux > Error 1045 in MySql for Linux 9.0

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Error 1045 in MySql for Linux 9.0

Reply to Message Icon

Name: KBB
Date: January 31, 2004 at 18:13:31 Pacific
OS: Linux
CPU/Ram: 850 MHz/1 GHz
Comment:

mysqladmin will not allow me to set my root
password. Therefore I cannot connect to a database
and nor create tables.

This is what I am entering and here are the results.

# mysqladmin -u root password 000000
mysqladmin: connect to server at localhost failed.
error: 'Access denied for user: 'root@localhost' (Using
password: NO)

This is what happens when I use the mysql
command.
# mysql -u root -p 000000
Enter password:ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

I have checked the mysqld and it is running.
Can anyone help me with an Error 1045 on MySQL on Linux 9.0

Thanks
KBB



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: February 2, 2004 at 03:07:40 Pacific
Reply:

I don't know about MySQL, but for PostgresQL you have to be the user postgres instead of root for database admin. Once in you can assign rights for the user root.


0

Response Number 2
Name: astralbaby
Date: February 2, 2004 at 18:50:19 Pacific
Reply:

assuming mysql is located in the local directory..
open a terminal session and enter the command below

cd /usr/local/mysql

then

bin/mysql_install_db

then create a user called mysql in users and groups

then type the following in the command line

chown -R mysql:mysql .

then start the mysql daemon by typing

bin/mysqld_safe &

now we must give root a password..

bin/mysqladmin -u root password 'new_password'

and to test... we type..

bin/mysqlshow -p

enter root password

and should return the mysql main db and a test db.

ok.. what we have done is installed the mysql db giving the user mysql global privelages, started the service, and gave root a password, and did a test to see if we got output from a command issued against the mysql db.


0

Response Number 3
Name: KBB
Date: February 5, 2004 at 22:12:58 Pacific
Reply:

Thanks guys,

That did the trick!!!

KBB


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Error 1045 in MySql for Linux 9.0

Redhat Linux 9.0 www.computing.net/answers/linux/redhat-linux-90-/22406.html

linux 9.0 installation error www.computing.net/answers/linux/linux-90-installation-error/21244.html

pink tie linux 9.0 scsi error www.computing.net/answers/linux/pink-tie-linux-90-scsi-error/24040.html