Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/www/mysql/mysql.sock' (2) in /var/www/htdocs/include/config.php on line 6
Greide ikke å koble til MySQL.
su - mysql
mysql_install_db
ak skrev:Ekstern database = på en annen maskin?
/var/www/mysql/mysql.sock kan kun brukes mot MySQL server på samme maskin. Du har antageligvis definert "DB host" eller lignende feil i scriptet, mest sannsynlig står det "localhost" (som gjør at MySQL prøver å bruke sock istedet for TCP/IP).
mysql@sysfile:/home/aleksander$ mysql_install_db
Installing all prepared tables
060301 10:26:42 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=sysfile-bin' to avoid this problem.
Fill help tables
060301 10:26:43 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=sysfile-bin' to avoid this problem.
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 sysfile password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
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 https://order.mysql.com
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'reboot'@'localhost' (using password: YES) in /var/www/htdocs/include/config.php on line 6
Greide ikke å koble til MySQL.
Returner til Utvikling i Linux
Registrerte brukere: Ingen registrerte brukere