I tried to use the CentOS 7.0 virtual machine on Alibaba Cloud, deployed the Django application, and used MySQL to record some problems, many of these problems may be caused by CenOS 7 (previously adapted to CentOS 6.x ).
1. MySQL is gone and replaced by MariaDB (of course, MySQL is still configured in Django and is fully compatible with MariaDB). Install the MariaDB command:
Yum install mariadb-server mariadb-devel
2. service configuration change: use systemctl instead of the previous service. Take MariaDB and Nginx as an example:
Systemctl start mariadb. service # start MariaDB
Systemctl is-active mariadb. service # Check the running status of MariaDB
Systemctl enable mariadb. service # configure it to start automatically upon startup
Systemctl reload nginx. service # reload the nginx configuration file
3. When installing MySQL-python (because Django uses this), you also encounter problems:
The pip install MySQL-python command reports the error "# error MUST be supported first !".
By: https://bazaar.launchpad.net /~ The solution provided by maria-captains/maria/5.5/revision/4355 is to modify the/usr/include/mysql/my_config_x86_64.h file.
Then re-install it. This is a compatibility issue.