-bash: ./scripts/mysql_install_db:/usr/bin/perl:
: [root@localhost mysql]# ./scripts/mysql_install_db --user=mysql -bash: ./scripts/mysql_insta]
mysql5.6.12 , , :
, :
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql
-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or
directory
, /usr/bin/perl , ( perl perl-devel ):
yum -y install perl perl-devel
。
mysql :
[root@localhost mysql]# /etc/init.d/mysqld start
Starting MySQL.............. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
:
2013-08-08 13:07:44 21805 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
130808 13:07:45 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.localdomain.pid ended
:cp ./support-files/my-default.cnf /etc/my.cnf
, , :
, !
my.cnf
sudo cp support-files/my-medium.cnf /etc/my.cnf
#
. root mysql
*******************************************************************************
MySQL root :
[root@localhost ~]# mysql -uroot -p
Enter password: ( )
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 35 to server version: 5.0.22
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> grant all on *.* to root@'%' identified by 'your_password';
Query OK, 0 rows affected (0.01 sec)
mysql> exit
Bye
[root@localhost ~]# /etc/init.d/mysqld restart
*******************************************************************************
.Mysqld
*******************************************************************************
1) mysql
mysql :sudo ps ?A | grep mysql
:sudo kill -9 process_id
mysqld:sudo /etc/init.d/mysqld restart
2)
Starting MySQL..The server quit without updating PID file ([ ]ocal/mysql/data/localhost.localdomain.pid).
my.cnf , , MYSQL , , :
128M, /usr/local/share/mysql/my-medium.cnf /etc/my.cnf
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
512M, /usr/local/share/mysql/my-large.cnf /etc/my.cnf
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
1-2G, /usr/local/share/mysql/my-huge.cnf /etc/my.cnf
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
my-medium.cnf , , my-large.cnf my-huge.cnf。
。
3)./mysql-bin.index not found
/usr/local/mysql/bin/mysqld 。
4)Error Code : 1418
This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
(0 ms taken)
:
1. mysql> SET GLOBAL log_bin_trust_function_creators = 1;
2. my.ini(linux my.conf) [mysqld] log-bin-trust-function-creators=1
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.