Skip to content

Commit

Permalink
修复数据库安装命令
Browse files Browse the repository at this point in the history
  • Loading branch information
maicong committed Feb 23, 2016
1 parent c72fff6 commit e663845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lnmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ function InstallService() {
echo -e "\n[client]\nsocket = /home/userdata/mysqld.sock" >> /etc/my.cnf;

if [ "$mysqlV" != "MySQL-5.7-Dev" ]; then
sed -i "s@mysqld.sock@mysqld.sock\nexplicit_defaults_for_timestamp@g" /etc/my.cnf;
[ "$mysqlV" != "MySQL-5.6" ] && \
sed -i "s@symbolic-links=0@symbolic-links=0\nexplicit_defaults_for_timestamp@g" /etc/my.cnf;
mysql_install_db --user=mysql;
else
mysqld --initialize-insecure --user=mysql;
Expand Down

0 comments on commit e663845

Please sign in to comment.