Jump to content

[SOLVED] Run SQL


The Little Guy

Recommended Posts

when I type in ps aux|grep mysqld, nothing happens, except a new blank line appears waiting for input.

 

I can run phpmyadmin, and my website connects to the database fine too.

 

character sets dir  /data/mysql/esary/share/mysql/charsets/

basedir                /data/mysql/esary/

datadir                /dh/mysql/esary/data/

socket                /tmp/mysql.esary.sock

tmpdir                /tmp/

Link to comment
https://forums.phpfreaks.com/topic/61182-solved-run-sql/page/2/#findComment-306597
Share on other sites

when I type in ps aux|grep mysqld, nothing happens, except a new blank line appears waiting for input.

 

From the shell prompt or the MySQL prompt?  I meant run it in bash.  But not matter....

 

I can run phpmyadmin, and my website connects to the database fine too.

 

character sets dir  /data/mysql/esary/share/mysql/charsets/

basedir                /data/mysql/esary/

datadir                /dh/mysql/esary/data/

socket                /tmp/mysql.esary.sock

tmpdir                /tmp/

 

Try adding the --socket=/tmp/mysql.esary.sock to the mysql command.

Link to comment
https://forums.phpfreaks.com/topic/61182-solved-run-sql/page/2/#findComment-306605
Share on other sites

Nope... That didn't work either

 

/usr/bin/mysql publicsize --socket=/tmp/mysql.esary.sock --user=limited --password='rmn!!2233' < /home/ryannaddy/cron/logOut.sql

 

/usr/bin/mysql  --socket=/tmp/mysql.esary.sock publicsize --user=limited --password='rmn!!2233' < /home/ryannaddy/cron/logOut.sql

Link to comment
https://forums.phpfreaks.com/topic/61182-solved-run-sql/page/2/#findComment-306671
Share on other sites

You're going to have to find a way to connect to the MySQL server.  If it's not running on your host (run "ps aux|grep mysqld" to verify), then you can't use a socket.  I'm not sure how your ISP has things set up, so normal things might not work.  How do you connect to MySQL in your PHP programs?  You might try using the --host= option to connect if it's on a different host than localhost.

Link to comment
https://forums.phpfreaks.com/topic/61182-solved-run-sql/page/2/#findComment-312155
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.