rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum install mysql-server
- log-in your mysql via terminal as "root" --> mysql -uroot -p
- CREATE USER 'toor123'@'%' IDENTIFIED BY 'your-password';
- GRANT ALL PRIVILEGES ON . TO 'toor123'@'%';flush privileges;
- Open mysql's configuration file: vi /etc/my.cnf
- Append the following directive into the [mysqld] section: bind-address=192.168.1.80 (server's address)
- Make sure line "skip-networking" is commented
- Store your changes and restart Mysqld: systemctl start|stop|status mysqld
- firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --query-port=3306/tcp
firewall-cmd --zone=public --remove-port=3306/tcp --permanent - You need the FILE privilege in order to be allowed to use SELECT...INTO OUTFILE, which seems to be what mysqldump --tab uses to generate the tab-separated dump.
This privilege is global, which means it may only be granted "ON ." :GRANT FILE ON *.* TO 'backup'@'%';
show global variables like '%secure%';