Mysql

Gurzi

Power Member
Boas malta, não sei porquê, não consigo correr o meu mysql.

tiago-palhotas-computer:~ tiagopalhota$ /usr/local/mysql/bin/mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Faço isso e obtenho esse erro..

Não sei se estou a fazer alguma coisa mal, mas para arrancar não é com o comando acima??

O pior é que não encontro em lado nenhum o mysql.sock ..

Já procurei no /tmp e nada , já procurei na pasta do mysql e nada.

Alguem sabe ? Abraço
 
Boas malta, não sei porquê, não consigo correr o meu mysql.

tiago-palhotas-computer:~ tiagopalhota$ /usr/local/mysql/bin/mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Faço isso e obtenho esse erro..

Não sei se estou a fazer alguma coisa mal, mas para arrancar não é com o comando acima??

O pior é que não encontro em lado nenhum o mysql.sock ..

Já procurei no /tmp e nada , já procurei na pasta do mysql e nada.

Alguem sabe ? Abraço

Não deves ter o servidor a correr ...

testa :
/etc/init.d/mysql start (ou mysqld)

e depois tenta conectar-te ...
 
unknown0017f24679a2:~ tiagopalhota$ /etc/init.d/mysql start
-bash: /etc/init.d/mysql: No such file or directory
unknown0017f24679a2:~ tiagopalhota$ /etc/init.d/mysqld start
-bash: /etc/init.d/mysqld: No such file or directory

Como consigo perceber onde está o init.d ?
 
Não estamos em Linux. :D

Para simplifcar se calhar o melhor é instalares isto:

intel: http://mysql.he.net/Downloads/MySQL-5.0/mysql-5.0.37-osx10.4-i686.dmg
ppc: http://mysql.he.net/Downloads/MySQL-5.0/mysql-5.0.37-osx10.4-*****.dmg

MySQL
While it’s possible to compile and install MySQL ourselves, using the Mac OS X MySQL package is actually advantageous. Not only is the package-installer much faster and easier, but it includes a handy startup item and a preference panel, and the binary is tuned by the MySQL team for Mac OS X.

Even better, the package installs MySQL right into the /usr/local/ folder, just like it should!

The install still requires a few steps:

Download the MySQL 5.0 package for OS X PPC or the MySQL 5.0 package for OS X Intel
Double-click the drive image to mount it
Locate the MySQL installer (a file named something like mysql-5.0.37-osx10.4-i686.pkg) and run it, authenticating as needed
Double-click MySQLStartupItem.pkg, authenticate, and let it install
Double-click MySQL.prefPane and install it, deciding whether to make it available to just the current user, or for all system users
Once the install is complete, start the MySQL server using the newly-installed control panel.
 
Back
Topo