Re: [linux] Fwd: Mysql error----"Can't connect to local MySQ…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Anu-Linux
Date:  
To: Dharshana kasun Warusavitharana
CC: linux-raw
Subject: Re: [linux] Fwd: Mysql error----"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
Hello,

As shown in the log, did you try running the mysql_upgrade script? Error
shows that your mysql.plugin table is not there. Try mysql_install_db script
too. Some times, it might create the necessary plugin tables to operate
mysqld. Not 100% sure, but you can try those. Try to locate those scripts
and run.

Cheers!

On Tue, Sep 1, 2009 at 4:24 PM, Dharshana kasun Warusavitharana <
dkasunw@???> wrote:

>
> HI ppl thanx for supporting me solving my issue
>
> Thank you very much and i believe i found some points to play around with
>
> Thank you very much
>
> The tail of mysqld.log says
> [root@kasun ~]# vim /var/log/mysql.log
>
>
> 090829 08:51:36 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid
> ended
> 090901 10:17:44 mysqld_safe Starting mysqld daemon with databases from
> /var/lib/mysql
> 090901 10:17:45 [Note] Plugin 'ndbcluster' is disabled.
> /usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
> 090901 10:17:45 [ERROR] Can't open the mysql.plugin table. Please run
> mysql_upgrade to create it.
> InnoDB: The first specified data file ./ibdata1 did not exist:
> InnoDB: a new database to be created!
> 090901 10:17:45 InnoDB: Setting file ./ibdata1 size to 10 MB
> InnoDB: Database physically writes the file full: wait...
> 090901 10:17:45 InnoDB: Log file ./ib_logfile0 did not exist: new to be
> created
> InnoDB: Setting log file ./ib_logfile0 size to 5 MB
> InnoDB: Database physically writes the file full: wait...
> 090901 10:17:45 InnoDB: Log file ./ib_logfile1 did not exist: new to be
> created
> InnoDB: Setting log file ./ib_logfile1 size to 5 MB
> InnoDB: Database physically writes the file full: wait...
> InnoDB: Doublewrite buffer not found: creating new
> InnoDB: Doublewrite buffer created
> InnoDB: Creating foreign key constraint system tables
> InnoDB: Foreign key constraint system tables created
> 090901 10:17:46 InnoDB: Started; log sequence number 0 0
> 090901 10:17:46 [ERROR] Can't start server : Bind on unix socket:
> Permission denied
> 090901 10:17:46 [ERROR] Do you already have another mysqld server running
> on socket: /tmp/mysql.sock ?
> 090901 10:17:46 [ERROR] Aborting
>
> 090901 10:17:46 InnoDB: Starting shutdown...
> 090901 10:17:47 InnoDB: Shutdown completed; log sequence number 0 46409
> 090901 10:17:47 [Warning] Forcing shutdown of 1 plugins
> 090901 10:17:47 [Note] /usr/libexec/mysqld: Shutdown complete
>
> 090901 10:17:47 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid
> ended
>
>
> --
> Dharshana Kasun Warusavitharana
> Faculty of Engineering Technology
> The Open University of Sri Lanka
>
> _______________________________________________
> linux-raw mailing list
> linux-raw@???
> https://secure.lug.lk/mailman/listinfo/linux-raw
>




-- 
දසුන්ප්‍රිය අනුරාධ.
D. AnuradhA
Step to the future with FOSS!


My Blog : http://blog.mihikatha.net/
සිංහළ blog සටහන්: http://anuradha-life.blogspot.com/
My Photo Galleries : http://www.flickr.com/photos/dasun
http://picasaweb.google.com/linuxdassa
_______________________________________________
linux mailing list
linux@???
https://secure.lug.lk/mailman/listinfo/linux