• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

MySQL + Slackware 8.1

pac1085

Diamond Member
I'm just starting to learn a little php with mysql...anyways, I'm having a problem getting mysql started in slackware. Every time I try and run it, I get the following message:

ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)


If anyone knows what I can do to fix this, It would be appreciated. TIA.
 
I donno what sqwdhasf is but I run linux...
It sounds as if it is expecting some sort of server dameon to be running.
Maybe you should look on the web for Mysql to make sure you have your server stuff running correctly
 
What are you running it with? Are you using the startup script, or are you just running it from CLI?

Here is how you set it up (Assuming you installed the Slackware package that came with the distro):
1. su as user mysql (or log in as user mysql). It should already exist.
2. run the init script /usr/bin/mysql_install_db. The script should create administration tables it needs to be able to run inside the usr mysql. To verify this, cd to ~mysql and see if there are 2 directories: (1) mysql, (2)test. (You should only worry about having the mysql directory)
3. Now, there exists a startup script for mysql under /usr/share/mysql/ called mysql.server. You can use that script to start the mysql server daemon how ever you want to. To test that everything works and runs, just run it (as user mysql) with the start argument. If sucessfull, you should see something like this:

Starting mysqld daemon with databases from /var/lib/mysql

If you fail, check the log under ~mysql/<your_host_name>.err, or /var/lib/mysql/<your_host_name>.err (~mysql is a link to /var/lib/mysql), and see exactly what the error was.


Hopefully if you follow the above process, it should be able to run. Just remember that everything should be owned by user mysql, and run by user mysql.

GL
 
Back
Top