LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2003, 12:42 PM   #1
jet192
LQ Newbie
 
Registered: Aug 2003
Distribution: Fedora
Posts: 18

Rep: Reputation: 0
MySQL help please


im trying to set up MySQL and PHP to run a message board on my web server.. so far the PHP part is working fine.. my problem is with MySQL..

i try to change the password for the root user of the database and this is what i use and the error i get

/mysqladmin -u -p password 'password'
Enter Password:

mysqladmin: connect to server at 'localhost' failed
error 'access denied for user: 'root@localhost' (Using password: YES)'



i am a noob at both linux and MySQL so i think its me that is doing something wrong.. and since i am a noob you will probably have the spell out the solution..

any help would be great.
 
Old 08-03-2003, 04:08 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Seeing as I never use the mysqladmin method and rather than mess about getting the format wrong I'll tell you another way which has the advantage of changing the password for all login locations and not just the current one

Login to mysql as normal

mysql -u root -p

enter your current password

Once connected to mysql:

use mysql

UPDATE user SET password=PASSWORD('mynewpassword') WHERE user='root';

FLUSH PRIVILEGES;
 
Old 08-03-2003, 06:41 PM   #3
jet192
LQ Newbie
 
Registered: Aug 2003
Distribution: Fedora
Posts: 18

Original Poster
Rep: Reputation: 0
thank you for your help
 
  


Reply



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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:56 AM.

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