Hello everyone I am totally new to MySQL and I do not know how to deal with the following problem:
I want to run MySQL server but there occurs following error:
akalogix:/ # mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysql/mysql.sock’ (2)
can anyone tell me what to do. P.S: I am developing Java applications and I am totally new to MySQL. I will appreciate anyone who can suggest any readings.
The ‘mysql’ command is for the client. Is the server running as well? On
the same box or elsewhere?
ps aux | grep -i mysql
netstat -planet | grep :3306
mysql -h localhost
Good luck.
On 10/29/2010 10:06 AM, agajantorayev wrote:
>
> Hello everyone I am totally new to MySQL and I do not know how to deal
> with the following problem:
> I want to run MySQL server but there occurs following error:
>
> akalogix:/ # mysql
> ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
> ‘/var/run/mysql/mysql.sock’ (2)
>
> can anyone tell me what to do. P.S: I am developing Java applications
> and I am totally new to MySQL. I will appreciate anyone who can suggest
> any readings.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
I do not know anything about MySQL and I have no any idea what to do? I have just finished core JAVA and started learning Accessing Databases with JDBC, so I installed MySQL and Connector/J. Does anyone know any tutorial or any reading about installation, setting up MySQL and using it with JDBC???
The commands I sent last time were meant to be run. Sorry if that was not
clear. Run them and post the output.
To connect to MySQL (or any database) I like DB Visualizer which is a
great free, cross-platform tool. Give it a try.
Good luck.
On 10/29/2010 11:36 AM, agajantorayev wrote:
>
> I do not know anything about MySQL and I have no any idea what to do? I
> have just finished core JAVA and started learning Accessing Databases
> with JDBC, so I installed MySQL and Connector/J. Does anyone know any
> tutorial or any reading about installation, setting up MySQL and using
> it with JDBC???
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> I do not know anything about MySQL and I have no any idea what to do? I
> have just finished core JAVA and started learning Accessing Databases
> with JDBC, so I installed MySQL and Connector/J. Does anyone know any
> tutorial or any reading about installation, setting up MySQL and using
> it with JDBC???
>
>
Set mysql to start in Yast - System - Runlevel Editor.
For the rest, read the docs provided. You have to learn the basics about the components you’re going to use. That’s far beyond some replies in these forums.
> Set mysql to start in Yast - System - Runlevel Editor.
if you’re using a recent version of openSUSE and installed MySQL from oS
repos, you can start the mysql server by typing “rcmysql start” in a root
terminal. as far as i remember, the MySQL docs don’t explain how to do
that, but expect you to have a running instance of that server available.
the next step should be to create user accounts and secure the
installation, according to the ‘getting started’ guide on mysql.com.
to have mysql start every time you start openSUSE, you’ll have to enable
it in the runlevel editor, as knurpht wrote.