Пробема с mysql
Модератор: Модераторы разделов
-
vlnzpua
- Сообщения: 8
Пробема с mysql
Порставил Mysql. Дальше делаю вот это:
root@billing:/var/lib# mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
/usr/libexec/mysqld: ERROR: unknown option '--old-passwords'
Installation of grant tables failed!
Examine the logs in /var/lib/mysql for more information.
You can also try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
You can use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
Что не так? Подскажите....
root@billing:/var/lib# mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
/usr/libexec/mysqld: ERROR: unknown option '--old-passwords'
Installation of grant tables failed!
Examine the logs in /var/lib/mysql for more information.
You can also try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
You can use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
Что не так? Подскажите....
-
boombick
- Сообщения: 516
- Статус: Anonymous
- ОС: ArchLinux 0.8 Voodoo
Re: Пробема с mysql
Почитай логи (/var/lib/mysql)
Проверь права на базы
запусти демон без привилегий (--skip-grants)
ну и потом создавай юзера _внутри_ mysql
Проверь права на базы
запусти демон без привилегий (--skip-grants)
ну и потом создавай юзера _внутри_ mysql
-
vlnzpua
- Сообщения: 8
Re: Пробема с mysql
1. логи в прикрепленых файлах. Там же и фай конфигурации.
2. Вроде проверил.
3. Пробывал. Тоже самое
4. Создан
-
boombick
- Сообщения: 516
- Статус: Anonymous
- ОС: ArchLinux 0.8 Voodoo
Re: Пробема с mysql
1. это не логи - это конфиг + какие-то бинарники непонятные =)
положи файл my.cnf в папку /etc (предварительно сделав бэкап старого, если он имеется)
Как ставил мускул - из пакета или ручками?
положи файл my.cnf в папку /etc (предварительно сделав бэкап старого, если он имеется)
Как ставил мускул - из пакета или ручками?
-
vlnzpua
- Сообщения: 8
Re: Пробема с mysql
my.cnf из архива я взял в папке /etc
Те 2 остальные файлы лежали на месте логов.
мускул ставил так: installpkg mysql-4.tgz
-
boombick
- Сообщения: 516
- Статус: Anonymous
- ОС: ArchLinux 0.8 Voodoo
Re: Пробема с mysql
удаляй этот пакет, качай и ставь вот это: http://slackware.perespim.ru/pub/slackware....24a-i486-1.tgz
Это MySQL из current-ветки официального репозитория.
У меня он стоит - все работает ОК
Это MySQL из current-ветки официального репозитория.
У меня он стоит - все работает ОК
-
sensei
- Сообщения: 353
- Статус: :[|||||||||||||]:
- ОС: SLES 10 SP1 & Vista Bussines
Re: Пробема с mysql
Под сразу установленным Слаком мускул запускается так:
cp /etc/my-medium.cnf /etc/my.cnf
mysql_install_db
chown -R mysql.mysql /var/lib/mysql
chmod +x /etc/rc.d/rc.mysql
/etc/rc.d/rc.mysql start
мне помогло
cp /etc/my-medium.cnf /etc/my.cnf
mysql_install_db
chown -R mysql.mysql /var/lib/mysql
chmod +x /etc/rc.d/rc.mysql
/etc/rc.d/rc.mysql start
мне помогло
-
vlnzpua
- Сообщения: 8
Re: Пробема с mysql
Ну вот удалил свой. Скачал по сылке с выше...
root@billing:/home/ftp/1# installpkg mysql-5.0.24a-i486-1.tgz
Installing package mysql-5.0.24a-i486-1...
PACKAGE DESCRIPTION:
mysql: mysql (SQL-based relational database server)
mysql:
mysql: MySQL is a fast, multi-threaded, multi-user, and robust SQL
mysql: (Structured Query Language) database server. It comes with a nice API
mysql: which makes it easy to integrate into other applications.
mysql:
mysql: The home page for MySQL is http://www.mysql.com/
mysql:
Executing install script for mysql-5.0.24a-i486-1...
root@billing:/home/ftp/1# mysql_install_db
Installing all prepared tables
Fill help tables
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 billing password 'new-password'
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 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 http://shop.mysql.com
У меня оперативки там 16М. Может в етом проблема?
А вот дальше:
root@billing:/etc# chown -R mysql.mysql /var/lib/mysql/
root@billing:/etc# chmod +x /etc/rc.d/rc.mysqld
root@billing:/etc# /etc/rc.d/rc.mysqld start
root@billing:/etc# Starting mysqld daemon with databases from /var/lib/mysql
/usr/bin/mysqld_safe: line 1: 1441 Killed nohup /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock >>/var/lib/mysql/billing.err 2>&1
STOPPING server from pid file /var/run/mysql/mysql.pid
060919 16:56:54 mysqld ended
root@billing:/var/lib/mysql# cat billing.err
060919 16:56:46 mysqld started
060919 16:56:54 mysqld ended
-
boombick
- Сообщения: 516
- Статус: Anonymous
- ОС: ArchLinux 0.8 Voodoo
-
RedStalker_Mike
- Сообщения: 108
Re: Пробема с mysql
vlnzpua писал(а): ↑19.09.2006 18:01
Ну вот удалил свой. Скачал по сылке с выше...
root@billing:/home/ftp/1# installpkg mysql-5.0.24a-i486-1.tgz
Installing package mysql-5.0.24a-i486-1...
PACKAGE DESCRIPTION:
mysql: mysql (SQL-based relational database server)
mysql:
mysql: MySQL is a fast, multi-threaded, multi-user, and robust SQL
mysql: (Structured Query Language) database server. It comes with a nice API
mysql: which makes it easy to integrate into other applications.
mysql:
mysql: The home page for MySQL is http://www.mysql.com/
mysql:
Executing install script for mysql-5.0.24a-i486-1...
root@billing:/home/ftp/1# mysql_install_db
Installing all prepared tables
Fill help tables
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 billing password 'new-password'
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 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 http://shop.mysql.com
У меня оперативки там 16М. Может в етом проблема?
А вот дальше:
root@billing:/etc# chown -R mysql.mysql /var/lib/mysql/
root@billing:/etc# chmod +x /etc/rc.d/rc.mysqld
root@billing:/etc# /etc/rc.d/rc.mysqld start
root@billing:/etc# Starting mysqld daemon with databases from /var/lib/mysql
/usr/bin/mysqld_safe: line 1: 1441 Killed nohup /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock >>/var/lib/mysql/billing.err 2>&1
STOPPING server from pid file /var/run/mysql/mysql.pid
060919 16:56:54 mysqld ended
root@billing:/var/lib/mysql# cat billing.err
060919 16:56:46 mysqld started
060919 16:56:54 mysqld ended
16м - маловато будет. Имхо, сhown вы зря делали ) оч похоже на то, что ему прав не хватает, что бы записать что-то куда-то. Поробуйте снести пакет, снова поставить и запустить, безо всяких доп вмешательств.
Along the Unixway...
-
sensei
- Сообщения: 353
- Статус: :[|||||||||||||]:
- ОС: SLES 10 SP1 & Vista Bussines
Re: Пробема с mysql
Я делал так как написал выше и все работает
-
vlnzpua
- Сообщения: 8
-
boombick
- Сообщения: 516
- Статус: Anonymous
- ОС: ArchLinux 0.8 Voodoo
Re: Пробема с mysql
(vlnzpua @ Sep 20 2006, в 11:05) писал(а):Глянь, плиз, внимательней
Пардон... Действительно пропустил...
А у тебя там реально 16 метров памяти только?
-
vlnzpua
- Сообщения: 8
-
vlnzpua
- Сообщения: 8
Re: Пробема с mysql
Сменил железяку. Вот что вышло:
root@billing:~# /etc/rc.d/rc.mysqld start
root@billing:~# ps -A |grep mysql
983 ? 00:00:00 mysqld_safe
1017 ? 00:00:00 mysqld
1018 ? 00:00:00 mysqld
1019 ? 00:00:00 mysqld
1020 ? 00:00:00 mysqld
1021 ? 00:00:00 mysqld
1022 ? 00:00:00 mysqld
1024 ? 00:00:00 mysqld
1025 ? 00:00:00 mysqld
1026 ? 00:00:00 mysqld
1027 ? 00:00:00 mysqld
root@billing:~# mysql_client_test
#####################################
client_connect
#####################################
Establishing a connection to '' ...
[MySQL][2002] Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
Check the connection options using --help or -?
Есть соображения?
root@billing:~# /etc/rc.d/rc.mysqld start
root@billing:~# ps -A |grep mysql
983 ? 00:00:00 mysqld_safe
1017 ? 00:00:00 mysqld
1018 ? 00:00:00 mysqld
1019 ? 00:00:00 mysqld
1020 ? 00:00:00 mysqld
1021 ? 00:00:00 mysqld
1022 ? 00:00:00 mysqld
1024 ? 00:00:00 mysqld
1025 ? 00:00:00 mysqld
1026 ? 00:00:00 mysqld
1027 ? 00:00:00 mysqld
root@billing:~# mysql_client_test
#####################################
client_connect
#####################################
Establishing a connection to '' ...
[MySQL][2002] Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
Check the connection options using --help or -?
Есть соображения?
-
boombick
- Сообщения: 516
- Статус: Anonymous
- ОС: ArchLinux 0.8 Voodoo
Re: Пробема с mysql
только одно: права...
А лучше дай какому-нить хорошему знакомому ssh и он тебе все настроит
А лучше дай какому-нить хорошему знакомому ssh и он тебе все настроит