 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

24th July 2005, 07:18 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Chicago, IL
Age: 31
Posts: 24

|
|
|
Setting password for mysql root user.
Ok im three days new to linux, I installed fedora core 4 and have Fedora 4 unleashed as my guide. I have set up an FTP server with 10 accounts and I have apache running. Now I want to get sql going to I can start developing my web page.
In my book it says to type
mysql -u root
then it says to
mysql> SET PASSWORD FOR root = PASSWORD("yournewpasswordhere");
After i type that I get an error that says
ERROR 1133 (42000): Can't find any matching row in the user table
any insight on what is wrong or what im doing wrong?
|

24th July 2005, 07:23 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158

|
|
|
1) make sure mysqld is running: service mysqld status
2) if there is not yet a password set then when you just type mysql and hit enter it should log you in with an unprivledged (usage only) user. type show databases; and make sure you have the 'mysql' database.
3) try using mysqladmin -u root password <my_password> to change your password
hth,
Joseph
__________________
I am root. If you see me laughing you better have a backup.
|

24th July 2005, 07:43 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Chicago, IL
Age: 31
Posts: 24

|
|
Quote:
|
Originally Posted by bytesniper
1) make sure mysqld is running: service mysqld status
2) if there is not yet a password set then when you just type mysql and hit enter it should log you in with an unprivledged (usage only) user. type show databases; and make sure you have the 'mysql' database.
3) try using mysqladmin -u root password <my_password> to change your password
hth,
Joseph
|
mysql> show databases;
+----------+
| Database |
+----------+
| test |
+----------+
1 row in set (0.00 sec)
#3 didnt work
|

24th July 2005, 07:50 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158

|
|
|
you should have another one in there called 'mysql' that holds, among many other things, the mysql user information. without it your not going to get anywhere at all. is this a version of mysql that you installed yourself or one that came with FC?
at this point i would recommend to uninstall it completely and reinstall it. other option is to find a default mysql.sql database that someone has mysqldump'ed or otherwise provided before any modifications were made to it.
__________________
I am root. If you see me laughing you better have a backup.
|

24th July 2005, 07:58 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Chicago, IL
Age: 31
Posts: 24

|
|
Quote:
|
Originally Posted by bytesniper
you should have another one in there called 'mysql' that holds, among many other things, the mysql user information. without it your not going to get anywhere at all. is this a version of mysql that you installed yourself or one that came with FC?
at this point i would recommend to uninstall it completely and reinstall it. other option is to find a default mbvandermeersch
mysqlysql.sql database that someone has mysqldump'ed or otherwise provided before any modifications were made to it.
|
Yea it came with FC4.
|

24th July 2005, 08:19 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158

|
|
|
very strange. only clean mysql installation i have ever seen (from FC) that didnt come with the 'mysql' base. i think your in luck though becuase i just setup a box at work with an sql server i havent done anything with yet so i ssh'd into it and dumped the mysql base which you should be able to import and all should be well.
1) create the mysql database in mysql. in mysql console type create database mysql;
2) download the mysql.sql file i have attached and type: mysql mysql < mysql.sql which is [mysql {database} < {dumpfile.sql}]
then try to set your admin password using any of the methods preciously discussed.
(edit) apparently this board won't accept .sql file as uploads so i gz'd it. you'll have to extract it out after you get it. tar xzf mysqldump.tar.gz
hope this works for ya,
Joseph
__________________
I am root. If you see me laughing you better have a backup.
|

24th July 2005, 08:28 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Chicago, IL
Age: 31
Posts: 24

|
|
|
read your last post to late, im doing a yum update to all my mysql packages and installing the updates right now.
if it dosent work then I will download your file.
thanks for all you help also, its much appreciated.
|

24th July 2005, 10:03 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Chicago, IL
Age: 31
Posts: 24

|
|
|
Dosent work when I goto create the database I get:
ERROR 1044 (42000): Access denied for user ' '@'localhost' to database 'mysql'
This is getting really frustrating.
|

24th July 2005, 10:30 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158

|
|
|
even after using the sql file i uploaded?
__________________
I am root. If you see me laughing you better have a backup.
|

24th July 2005, 11:08 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Chicago, IL
Age: 31
Posts: 24

|
|
Quote:
|
Originally Posted by bytesniper
1) create the mysql database in mysql. in mysql console type create database mysql;
2) download the mysql.sql file i have attached and type: mysql mysql < mysql.sql which is [mysql {database} < {dumpfile.sql}]
then try to set your admin password using any of the methods preciously discussed.
|
Dosent work when I do the first step I get:
ERROR 1044 (42000): Access denied for user ' '@'localhost' to database 'mysql'
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 16:45 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|