GRANT ALL PRIVILEGES ON *.* TO 'lingdang'@'%' IDENTIFIED BY 'lingdangcrm123' WITH GRANT OPTION;
flush privileges;
======================#安装 Mysql==========================================
#3.如果安装后 Apache 加载 libphp5.so 报错:
#Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: OnUpdateLong
cd /home/upload/php-5.4.45/
make distclean
./configure --prefix=/usr/local/php-5.3-svn --with-apxs2=/usr/bin/apxs2
make && make install
#4.安装扩展 mbstring
cd /home/upload/php-5.4.45/ext/mbstring/
/usr/local/php54/bin/phpize
./configure --with-php-config=/usr/local/php54/bin/php-config
make
make install
#5.安装扩展 mcrypt imap zip
cd /home/upload/php-5.4.45/ext/mcrypt/
/usr/local/php54/bin/phpize
./configure --with-php-config=/usr/local/php54/bin/php-config --with-mcrypt=$HOME/local/libmcrypt
#如果报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt. 需要手动安装libmcrypt.
tar zxvf libmcrypt-2.5.8.tar.gz
./configure
make
make install
#然后重新编译 mcrypt
cd /home/upload/php-5.4.45/ext/mcrypt/
/usr/local/php54/bin/phpize
./configure --with-php-config=/usr/local/php54/bin/php-config --with-mcrypt=$HOME/local/libmcrypt
make
make install