LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2005, 08:48 PM   #1
Andy.M
LQ Newbie
 
Registered: Jan 2002
Posts: 7

Rep: Reputation: 0
Mysql not working on Fedora 3


I have seen tons of posts with people having the same problem as I have but none of their fixes work. I'll post all the info I can to help you better understand where I am.

Mysql: Ver 8.40 Distrib 4.0.24, for pc-linux-gnu on i686

./mysqladmin ping
mysqld is alive

[andyem@linux bin]$ ./mysqladmin create database
./mysqladmin: CREATE DATABASE failed; error: 'Access denied for user: '@localhost' to database 'database''

tried to login as the mysql user and heres what I get:
[mysql@linux bin]$ ./mysqladmin create database
./mysqladmin: CREATE DATABASE failed; error: 'Access denied for user: '@localhost' to database 'database''

I also made a softlink ( ln -s /var/run/mysql.sock /tmp/mysql.sock) to relink the `/tmp/mysql.sock', which fixed the first issue I was having

I also tried this to login: [mysql@linux andyem]$ /usr/local/mysql/bin/mysqladmin -u mysql -p password
Enter password:
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'mysql@localhost' (Using password: YES)'

Here is my last log from my /var/log/mysqld.log file:

050522 03:27:21 mysqld started
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
/usr/libexec/mysqld: ready for connections

Here are the setup instructions I used:

#cd mysql-x.xx.x.
#./configure –prefix=/usr/local/mysql –localstatedir=/usr/local/mysql/data –disable-maintainer-mode –with-mysqld-user=mysql –enable-large-files-without-debug
#make ; make install
#/usr/sbin/groupadd mysql
#/usr/sbin/useradd -g mysql mysql
#./scripts/mysql_install_db
# chown -R root:mysql /usr/local/mysql
# chown -R mysql:mysql /usr/local/mysql/data
#vi /etc/ld.so.conf
/usr/local/mysql/lib/mysql
#/usr/local/mysql/bin/mysqld_safe –user=mysql &
#/usr/local/mysql/bin/mysqladmin -u root password new_password

I honestly don''t know whatelse to do can anyone please help me out. If there is anything else I can include please feel free to ask me and I'l include it. This is my last step in the apache/php/mysql combo. Thanks in advance
 
Old 05-22-2005, 10:18 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You need to login as the MySQL root user with the password you supplied in the following line:

#/usr/local/mysql/bin/mysqladmin -u root password new_password

Once you've logged in as MySQL root, you can configure nonpriviliged MySQL accounts. Do not confuse the MySQL users with system users.
 
  


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
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
MySQL not working jjdoll42 Linux - Software 1 07-19-2005 02:52 AM
Fedora Core 3, MySql Server, mysql started mysql ended OkiTek Fedora 30 01-28-2005 09:15 AM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 06:54 PM
MySQL not working for me blither Slackware 5 12-14-2002 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:16 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