Fedora Linux Support Community & Resources Center
  #1  
Old 19th July 2012, 09:17 PM
tamtam Offline
Registered User
 
Join Date: Dec 2006
Posts: 7
linuxfirefox
[SOLVED] Mysql problem

I have mysql installed, or so it says on add/remove programs. But I am having trouble locating or running mysql.

There is no mysqld in /etc/init.d
cd: /var/lib/mysql: No such file or directory

I have uninstalled and reinstalled, anyone any idea what is happening.

Last edited by tamtam; 19th July 2012 at 11:34 PM.
Reply With Quote
  #2  
Old 19th July 2012, 10:01 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,620
linuxfirefox
Re: Mysql problem

to start mysql on boot:

Code:
systemctl enable mysqld.service
You can start it without having to reboot:

Code:
systemctl start mysqld.service
Reply With Quote
  #3  
Old 19th July 2012, 11:37 PM
tamtam Offline
Registered User
 
Join Date: Dec 2006
Posts: 7
linuxfirefox
Re: Mysql problem

Hi DBelton, thanks for the prompt reply...

Sorry Guys,

Thought I had installed mysql, instead I was installing some package which installed some libraries and the database but not the actual server.

Uninstalled what I did install and installed the mysql-server package


Neither worked...
Code:
$ sudo systemctl enable mysqld.service
Failed to issue method call: No such file or directory

$ sudo systemctl start mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory. 
See system logs and 'systemctl status mysqld.service' for details.
When I try to connect using root (presuming no password set I get
Code:
# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
OR with mysqladmin
Code:
mysqladmin version
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
Is it that there are extra steps to perform after installing mysql - through add/remove programs.
Can't find a relevant readme for mysql on the system.

Can MySql be installed by yum?

Last edited by tamtam; 19th July 2012 at 11:36 PM.
Reply With Quote
  #4  
Old 20th July 2012, 08:44 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxopera
Re: Mysql problem

Quote:
Originally Posted by tamtam View Post
[...]

Can MySql be installed by yum?
yes, it can.

a guide:
Every Server Setup Imaginable: SMB, SSH, VPN, VNC, HTTPD (+ PHP), MySQL, More!
Reply With Quote
  #5  
Old 25th July 2012, 07:33 AM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540
linuxfirefox
Re: Mysql problem

You have installed the client, but have you installed the server?

yum install mysql-server

service mysqld start
Reply With Quote
Reply

Tags
mysql, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Problem b2k Using Fedora 22 17th January 2009 12:18 AM
Mysql Problem (Can't start mysql) johntp Servers & Networking 5 31st December 2006 06:48 AM
mysql problem EliteXR Servers & Networking 8 12th December 2005 02:49 AM
FC3 Mysql Problem nfawcett Servers & Networking 0 2nd May 2005 11:48 PM
The php or mysql have problem Stevenisme Servers & Networking 7 9th December 2004 06:31 AM


Current GMT-time: 18:52 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat