Добрый день.
Не могу запустить mysql, ошибка следующая
170213 8:31:19 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.mysql 5.1.72
устанавливал так
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --localstatedir=/msqdb --enable-assembler --with-mysqld-ldflags=-all-static --with-extra-charsets=cp1251 --with-big-tables --with-plugins=partition,daemon_example,ftexample,archive,blackhole,csv,example,federated,heap,innobase,innodb_plugin,myisam,myisammrg,ndbcluster
make
make install
запускаю так
/usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data/ --pid-file=/var/run/mysql/mysql.pid --socket=/tmp/mysql.sock --big-tables --basedir=/usr/local/mysql/data/ --ldata=/usr/local/mysql/lib/mysql/ &
логи
170213 08:45:41 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data/
170213 8:45:41 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
170213 8:45:41 [ERROR] Can't find messagefile '/usr/local/mysql/data/share/mysql/english/errmsg.sys'
170213 8:45:41 [Note] Plugin 'FEDERATED' is disabled.
170213 8:45:41 [Note] Plugin 'ndbcluster' is disabled.
/usr/local/mysql/libexec/mysqld: Unknown error 1146
170213 8:45:41 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170213 8:45:41 InnoDB: Initializing buffer pool, size = 8.0M
170213 8:45:41 InnoDB: Completed initialization of buffer pool
170213 8:45:41 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
170213 08:45:42 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
запускаю mysql_upgrade
root@darkstar:~/mysql-5.1.72# /usr/local/mysql/bin/mysql_upgrade
Looking for 'mysql' as: /usr/local/mysql/bin/mysql
Looking for 'mysqlcheck' as: /usr/local/mysql/bin/mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
Подскажите пожалуйста, где я накосячил?