Mitglied 26876
Gast
Hallöchen liebe Leute!
Also mein Problem mit 10.6.8 Server betrifft MySQL, den built in. Ich hatte das Problem zwei Tage vorher unter 10.4.11 Server erfolgreich gelöst, weiß nur nicht mehr, wie.
(Natürlich habe ich schon gesucht und auch viel gefunden, allerdings nichts, was mich zur Problemlösung brachte.)
Das Problem:
Der Socket scheint also vorhanden… Mal die Service.log:
Hier mal ein erneuter Installationsversuch:
Ich habe aktuell XAMPP auf 3307 laufen, weil ich dringend einen MySQL Server brauche, WordPress funktioniert auch, allerdings bekomme ich bei meinen eigenen PHP Dateien bei einer Abfrage folgendes:
(Interessant ist auch hier, dass er den GET-Parameter ignoriert und $token leer bleibt.)
Beide Systeme (mein eigenes und WordPress) liefen super auf einem gemieteten Server! Nur jetzt muss ich kurzfristig selbst hosten und bekomme da so das ein oder andere Problem, wie man sieht.
Kann mir da jemand helfen?
Also mein Problem mit 10.6.8 Server betrifft MySQL, den built in. Ich hatte das Problem zwei Tage vorher unter 10.4.11 Server erfolgreich gelöst, weiß nur nicht mehr, wie.
(Natürlich habe ich schon gesucht und auch viel gefunden, allerdings nichts, was mich zur Problemlösung brachte.)
Das Problem:
Code:
$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
$ ls /var/mysql/mysql.sock mysql_service.log
Der Socket scheint also vorhanden… Mal die Service.log:
Code:
$ cat /var/mysql/mysql_service.log
120702 13:19:04 [Warning] Setting lower_case_table_names=2 because file system for /Volumes/Data 2/ServiceData/MySQL/ is case insensitive
InnoDB: The InnoDB memory heap has been disabled.
InnoDB: Mutex and rw_lock use GCC atomic builtins.
120702 13:19:04 InnoDB: Started; log sequence number 0 43655
120702 13:19:04 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
$ cat /var/mysql/mysql_service.log
120702 13:19:04 [Warning] Setting lower_case_table_names=2 because file system for /Volumes/Data 2/ServiceData/MySQL/ is case insensitive
InnoDB: The InnoDB memory heap has been disabled.
InnoDB: Mutex and rw_lock use GCC atomic builtins.
120702 13:19:04 InnoDB: Started; log sequence number 0 43655
120702 13:19:04 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
120702 13:19:14 [Warning] Setting lower_case_table_names=2 because file system for /Volumes/Data 2/ServiceData/MySQL/ is case insensitive
InnoDB: The InnoDB memory heap has been disabled.
InnoDB: Mutex and rw_lock use GCC atomic builtins.
120702 13:19:14 InnoDB: Started; log sequence number 0 43655
120702 13:19:14 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
120702 13:19:24 [Warning] Setting lower_case_table_names=2 because file system for /Volumes/Data 2/ServiceData/MySQL/ is case insensitive
InnoDB: The InnoDB memory heap has been disabled.
InnoDB: Mutex and rw_lock use GCC atomic builtins.
120702 13:19:24 InnoDB: Started; log sequence number 0 43655
120702 13:19:24 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
120702 13:19:35 [Warning] Setting lower_case_table_names=2 because file system for /Volumes/Data 2/ServiceData/MySQL/ is case insensitive
InnoDB: The InnoDB memory heap has been disabled.
InnoDB: Mutex and rw_lock use GCC atomic builtins.
120702 13:19:35 InnoDB: Started; log sequence number 0 43655
120702 13:19:35 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
Hier mal ein erneuter Installationsversuch:
Code:
$ sudo mysql_install_db
Password:
Installing MySQL system tables...
120702 13:11:47 [Warning] Setting lower_case_table_names=2 because file system for /var/mysql/ is case insensitive
OK
Filling help tables...
120702 13:11:47 [Warning] Setting lower_case_table_names=2 because file system for /var/mysql/ is case insensitive
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h qs-server.com password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Code:
$ mysqladmin ping
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!
Code:
$ sudo ps -A|grep mysql
45791 ?? 0:00.06 /bin/sh /Applications/XAMPP/xamppfiles/bin/mysqld_safe --datadir=/Applications/XAMPP/xamppfiles/var/mysql --pid-file=/Applications/XAMPP/xamppfiles/var/mysql/qs-server.com.pid
45892 ?? 0:00.98 /Applications/XAMPP/xamppfiles/sbin/mysqld --basedir=/Applications/XAMPP/xamppfiles --datadir=/Applications/XAMPP/xamppfiles/var/mysql --user=nobody --log-error=/Applications/XAMPP/xamppfiles/var/mysql/qs-server.com.err --pid-file=/Applications/XAMPP/xamppfiles/var/mysql/qs-server.com.pid --socket=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock --port=3307
40867 ttys000 78:00.06 sudo /usr/local/mysql/bin/safe_mysqld
47169 ttys000 0:00.00 grep mysql
Ich habe aktuell XAMPP auf 3307 laufen, weil ich dringend einen MySQL Server brauche, WordPress funktioniert auch, allerdings bekomme ich bei meinen eigenen PHP Dateien bei einer Abfrage folgendes:
Code:
SELECT * FROM apiTokens WHERE token =''[COLOR=#000000]No such file or directory[/COLOR]
Beide Systeme (mein eigenes und WordPress) liefen super auf einem gemieteten Server! Nur jetzt muss ich kurzfristig selbst hosten und bekomme da so das ein oder andere Problem, wie man sieht.
Kann mir da jemand helfen?