(It is recommended that to install MySQL before the installation of PHP_extension to avoid old extension installation.)
Method #1. Install using port: (not working!)
Method #2, Installusing pkg:
# pkg update
# pkg upgrade# pkg install mysql57-server mysql57-client
# service mysql-server start
MySQL secure installation:
(Note the password)# cat $HOME/.mysql_secret
yFH&pek0yw3
# mysql_secure_installation
Answer them all with ...y
# mysql -u root -p
password: yFH&pek0yw3
root@localhost [(none)]> ALTER USER 'root'@'localhost' IDENTIFIED BY 'yFH&pek0yw3';
root@localhost [(none)]> show databases;
root@localhost [(none)]> show databases;
Create a user / database in MySQL:
GRANT ALL PRIVILEGES ON *.* TO 'jira'@'localhost' IDENTIFIED BY 's@ydrfD34FEds';
exit
Check the latest version of the MySQL:
Link:
Install Portsnap
Ref:
1. How to Install MySQL Server with phpMyAdmin on FreeBSD 11
2. The easiest way to improve the performance of MySQL server on FreeBSD
GRANT ALL PRIVILEGES ON *.* TO 'jira'@'localhost' IDENTIFIED BY 's@ydrfD34FEds';
exit
# mysql -u jira -p
CREATE DATABASE jira;
CREATE DATABASE jira;
Check the latest version of the MySQL:
# mysqladmin -u root -p version
Start/Stop:
# sudo /usr/local/etc/rc.d/mysql-server start
# service mysql-server start
# sudo /usr/local/etc/rc.d/mysql-server start
# sudo /usr/local/etc/rc.d/mysql-server start
Install Portsnap
Ref:
1. How to Install MySQL Server with phpMyAdmin on FreeBSD 11
good article... nice.
ReplyDelete