LINUX.ORG.RU

mysql_install_db набил мне шишку


0

0

Плиз хелп, уже на стольких форумах спрашивал и ноль.

Запускаю ./mysql_install_db

Скрипт стандартный с.м. ниже.

Создаёт папку mysql/help_category.MYI help_category.MYD help_category.frm & test/

Потом выкидывает ошибки:

$ ./bin/mysql_install_db chown: `mysql': invalid user Installing all prepared tables 050607 23:40:13 [Warning] Setting lower_case_table_names=2 because file system or /usr/local/mysql/var/ is case insensitive 050607 23:40:13 [Warning] One can only use the --user switch if running as root

050607 23:40:13 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/db.frm' ERROR: 1033 Incorrect information in file: './mysql/db.frm' ERROR: 1146 Table 'mysql.db' doesn't exist ERROR: 1146 Table 'mysql.db' doesn't exist 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/host.frm' ERROR: 1033 Incorrect information in file: './mysql/host.frm' 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/user.frm' ERROR: 1033 Incorrect information in file: './mysql/user.frm' ERROR: 1146 Table 'mysql.user' doesn't exist ERROR: 1146 Table 'mysql.user' doesn't exist ERROR: 1146 Table 'mysql.user' doesn't exist ERROR: 1146 Table 'mysql.user' doesn't exist 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/func.frm' ERROR: 1033 Incorrect information in file: './mysql/func.frm' 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/tables_priv.frm' ERROR: 1033 Incorrect information in file: './mysql/tables_priv.frm' 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/columns_priv.frm' ERROR: 1033 Incorrect information in file: './mysql/columns_priv.frm' 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information n file: './mysql/help_topic.frm' ERROR: 1033 Incorrect information in file: './mysql/help_topic.frm' 050607 23:40:14 [ERROR] /usr/local/mysql/libexec/mysqld: Incorrect information

anonymous

Ответ на: комментарий от anonymous

-------------------------------------------------------------- конфиг: ------------------------------------------------------------- [mysql.server] basedir=/usr/local/mysql

# The following options will be passed to all MySQL clients [client] #password = your_password port = 3307 socket = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server [mysqld] datadir =/usr/local/mysql/var user =mysql port = 3307 socket = /tmp/mysql.sock

skip-locking key_buffer = 16M max_allowed_packet = 1M table_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer_size = 256K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 8M

[mysqldump] quick max_allowed_packet = 16M

[mysql] no-auto-rehash

[isamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M

[myisamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M

[mysqlhotcopy] interactive-timeout

anonymous
()
Ответ на: комментарий от simba

Я не добавил что это Cygwin

mysql/help_category.MYI help_category.MYD help_category.frm & test/

Roman@lexx /usr/local/mysql $ groupadd mysql bash: groupadd: command not found

Roman@lexx /usr/local/mysql $ useradd -g mysql mysql bash: useradd: command not found

Roman@lexx /usr/local/mysql $ chown -R root /usr/local/mysql chown: `root': invalid user

Roman@lexx /usr/local/mysql $ chown -R mysql /usr/local/mysql/var chown: `mysql': invalid user

Roman@lexx /usr/local/mysql $ chgrp -R mysql /usr/local/mysql chgrp: invalid group `mysql'

$ su su: Not supported on Cygwin. Use another technique to change user id temporarily, such as Windows RunAs or Cygwin OpenSSH.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.