CentOS7ã«yumã§MariaDBãå ¥ããæé
CentOS7ã§ã¯MySQLã®ä»£ããã«MariaDBãæ¡ç¨ããã¦ãããããªã®ã§ãyumã§ã®ã¤ã³ã¹ãã¼ã«æé ãæ®ãã¦ããã¾ãã
ã¤ã³ã¹ãã¼ã«ãããµã¼ãã¹ç»é²ã¾ã§
yum install mariadb mariadb-server vi /etc/my.cnf [mysqld] character-set-server=utf8 firewall-cmd --permanent --zone=public --add-service=mysql systemctl restart firewalld.service systemctl enable mariadb.service systemctl start mariadb.service
åæè¨å®
mysql_secure_installationã§å¯¾è©±å½¢å¼ã§è¡ãã¾ãã åºæ¬çã«ã¯å ¨ã¦Yã§è¯ãã¨æãã¾ãã
/usr/bin/mysql_secure_installation
ãã°ã¤ã³ã¨ã¦ã¼ã¶ã¼ä½æ
åæè¨å®ã«ãã£ã¦ãrootã§ã¯ãªã¢ã¼ããã°ã¤ã³ã§ããªããªã£ã¦ããã®ã§ãå¿ è¦ã«å¿ãã¦ã¦ã¼ã¶ã¼ãä½æãã¾ãã
mysql -u root -p ##ãªã¢ã¼ããããã°ã¤ã³ã§ããå ¨æ¨©éãæã¤ã¦ã¼ã¶ã¼ãä½æ GRANT ALL PRIVILEGES ON *.* TO user@'%' IDENTIFIED BY 'pass' WITH GRANT OPTION; FLUSH PRIVILEGES;
phpMyAdminã®ã¤ã³ã¹ãã¼ã«
phpMyAdminã®ipå¶é解é¤ã§ã¯ã¾ã£ãæã®è¨é²ã¯ãã¡ãã§ã
CentOS7でphpMyAdminに403 forbiddenを出され続けた話 - サナギわさわさ.json
yum install php-mysql php php-gd php-mbstring rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm yum install phpmyadmin #Aliasè¨å®ã¨ipå¶éé©å½ã« vi /etc/httpd/conf.d/phpMyAdmin.conf
http://localhost/phpMyAdminã§ã¢ã¯ã»ã¹ã§ãããã¨ã確èª
â»httpãã¼ãã空ãã¦ãªãå ´åã¯firewall-cmd --permanent --zone=public --add-service=http
ã§ç©ºãããã¨
以ä¸ã§ããæ¯åãã¼ã空ããã®å¿ãã¾ãã