mysql?

Aveţi probleme cu serverul Apache, cu interpretorul de PHP sau cu baza de date MySQL? Aici găsiţi informaţii despre servere free unde se poate instala forumul phpBB, despre cele contra cost în forumul Reclamă.
Avatar utilizator
danielt
Administrator
Administrator
Mesaje: 1176
Membru din: 18-Oct-2002, 12:02:29
Versiune: 3.0.5
MOD: Nu
Server: UNIX/Linux
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Timişoara
Contact:

Mesaj de danielt » 17-Iul-2003, 13:45:38

Serverul tau nu este bine configurat!
[2.3] The error message "Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)..." is displayed. What can I do?


For RedHat users, Harald Legner suggests this on the mailing list:

On my RedHat-Box the socket of MySQL is /var/lib/mysql/mysql.sock. In your php.ini you will find a line
mysql.default_socket = /tmp/mysql.sock
change it to
mysql.default_socket = /var/lib/mysql/mysql.sock
Then restart apache and it will work.

Here is a fix suggested by Brad Ummer in the phpwizard forum:

* First, you need to determine what socket is being used by MySQL.
To do this, telnet to your server and go to the MySQL bin directory. In this directory there should be a file named mysqladmin. Type ./mysqladmin variables, and this should give you a bunch of info about your MySQL server, including the socket (/tmp/mysql.sock, for example).
* Then, you need to tell PHP to use this socket.
Assuming you are using PHP 3.0.10 or better, you can specify the socket to use when you open the connection. To do this in phpMyAdmin, you need to complete the socket information in the config.inc.php3.
For example: $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';

Please also make sure that the permissions of this file allow to be readable by your webserver (i.e. '0755').

Have also a look at the corresponding section of the MySQL documentation.
Poti citi mai multe informatii la: http://www.phpmyadmin.net/documentation/

ronniee
Nou venit
Nou venit
Mesaje: 6
Membru din: 10-Iul-2003, 15:48:42

Mesaj de ronniee » 18-Iul-2003, 12:10:58

Mersi mult :)
acum merge


ronniee,
-------------------
Ole Madrid
Somos campeones del Mundo

Avatar utilizator
bogdan
Administrator
Administrator
Mesaje: 10888
Membru din: 18-Oct-2002, 12:14:27
Versiune: 3.0.11
MOD: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Mesaj de bogdan » 16-Feb-2004, 14:25:56

pentru mai multe informatii, folositi view_external.php?f=24 !

Avatar utilizator
octaviansan
Guru
Guru
Mesaje: 1124
Membru din: 28-Iun-2006, 12:56:23
MOD: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucureşti, RO
Contact:

Mesaj de octaviansan » 22-Iul-2006, 21:18:44

imi zici si mie?

ZyK
Junior
Junior
Mesaje: 20
Membru din: 10-Mai-2010, 15:16:06
Versiune: 3.0.9
MOD: Nu
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Satu mare
Contact:

Re: mysql?

Mesaj de ZyK » 13-Noi-2010, 00:37:10

am primit si eu eroare asta... si nu ii dau de cap ... am adaugat si

Edit /etc/my.cnf to reflect the location and owner of your MySQL database. The file should look something like this:

[mysqld]
user=btevdocd
datadir=/www/database/mysql
socket=/www/database/mysql/mysql.sock
skip-innodb

[mysql.server]
user=btevdocd
basedir=/www/database

[client]
user=btevdocd
socket=/www/database/mysql/mysql.sock

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


dar nimic.. poate nu am adaugat unde trebe... nu mai stiu ce sa ii fac

Avatar utilizator
bogdan
Administrator
Administrator
Mesaje: 10888
Membru din: 18-Oct-2002, 12:14:27
Versiune: 3.0.11
MOD: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Re: mysql?

Mesaj de bogdan » 13-Noi-2010, 01:26:02

Care e eroarea? Ce versiune folosesti?

Folosesti un tool ce include mysql (XAMPP, EasyPHP, ...)?

Scrie răspuns

Înapoi la “Server”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator