Hi; It's been a while since I controlled my own server and I'm rusty. Trying to install mysql yum install mysql All looks well. Here's what happens: [root at 13gems www]# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [root at 13gems www]# mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) There's no mysqld in the ps wax. Please advise. beno -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091105/1d721b8a/attachment-0004.html>
Am Donnerstag, den 05.11.2009, 17:11 +0100 schrieb Victor Subervi:> Hi; > It's been a while since I controlled my own server and I'm rusty. > Trying to install mysql > yum install mysql > All looks well. Here's what happens: > > [root at 13gems www]# mysql > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) > [root at 13gems www]# mysql -u root -p > Enter password: > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) > > There's no mysqld in the ps wax. Please advise. > benoHow about starting it? service mysqld start financial.com AG Munich head office/Hauptsitz M?nchen: Maria-Probst-Str. 19 | 80939 M?nchen | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich ? HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553
Victor: Try this: vi /etc/init.d/mysqld And set the chkconfig line to: # chkconfig: 235 64 36 chkconfig --add mysqld chkconfig --level 235 mysqld on /etc/init.d/mysqld start Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com <http://www.jammconsulting.com/> CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime _____ From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Victor Subervi Sent: Thursday, November 05, 2009 10:12 AM To: CentOS mailing list Subject: [CentOS] MySQL installation problem Hi; It's been a while since I controlled my own server and I'm rusty. Trying to install mysql yum install mysql All looks well. Here's what happens: [root at 13gems www]# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [root at 13gems www]# mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) There's no mysqld in the ps wax. Please advise. beno -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091105/e71cc0e3/attachment-0004.html>
On Thursday 05 November 2009 16:11:56 Victor Subervi wrote:> Hi; > It's been a while since I controlled my own server and I'm rusty. Trying to > install mysql > yum install mysql > All looks well. Here's what happens: > > [root at 13gems www]# mysql > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) > [root at 13gems www]# mysql -u root -p > Enter password: > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) > > There's no mysqld in the ps wax. Please advise. > benoHow about starting mysqld service mysqld start chkconfig --level 35 mysqld on Tony -- Dept. of Comp. Sci. University of Limerick.
On Thu, Nov 5, 2009 at 10:11 AM, Victor Subervi <victorsubervi at gmail.com> wrote:> Hi; > It's been a while since I controlled my own server and I'm rusty. Trying to > install mysql > yum install mysql > All looks well. Here's what happens: > > [root at 13gems www]# mysql > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) > [root at 13gems www]# mysql -u root -p > Enter password: > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) > > There's no mysqld in the ps wax. Please advise. > benoThe mysql package is just client stuff and libraries. You need: yum install mysql-server -- Jeff