1.下载mysql
wget https://obs.cn-north-4.myhuaweicloud.com/obs-mirror-ftp4/database/mysql-5.7.27-aarch64.tar.gz
tar -xvf mysql-5.7.27-aarch64.tar.gz -C /usr/local/
mv /usr/local/mysql-5.7.27-aarch64 /usr/local/mysql
2.添加mysql用户和组
groupadd -r mysql && useradd -r -g mysql -s /sbin/nologin -M mysql
3.配置MySQL
mkdir -p /usr/local/mysql/logs
chown -R mysql:mysql /usr/local/mysql
ln -sf /usr/local/mysql/my.cnf /etc/my.cnf
cp -rf /usr/local/mysql/extra/lib* /usr/lib64/
mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.old
ln -s /usr/lib64/libstdc++.so.6.0.24 /usr/lib64/libstdc++.so.6
4.设置开机启动并配置环境变量
在/etc/profile 输入如下两行
export MYSQL_HOME=/usr/local/mysql
export PATH=$PATH:$MYSQL_HOME/bin
然后使用source /etc/profile ,使用如下命令设置开机自启动
cp -rf /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
chmod +x /etc/init.d/mysqld
systemctl enable mysqld
5.初始化mysql并修改密码
mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
systemctl start mysqld
mysql -u root
use mysql;
update user set authentication_string=password('新密码') where user='root' and Host='localhost';
flush privileges;
6.开启root远程登录
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' with GRANT OPTION;
flush privileges;
buy generic suhagra 50mg buy aurogra 100mg pills order estrace 2mg online cheap
This product may contain alcohol and can be irritating and drying to the scalp purchase cialis online It also, of course, will raise your testosterone levels 6 via this mechanism
order generic lamictal 200mg prazosin buy online purchase retin for sale
After years of reassuring parents about the safety of the MMR measles, mumps, rubella vaccine, the UK government has finally had to concede that it can have serious side effects buying cialis generic Charkos TG, et al
buy generic tadalis 10mg tadacip online buy buy voltaren 100mg
buy accutane 40mg online azithromycin buy online order azithromycin 250mg pills
buy indocin sale order amoxicillin 500mg pills purchase amoxicillin without prescription
buy cialis 40mg for sale Viagra overnight viagra 50mg tablet
order anastrozole for sale order biaxin 500mg generic buy sildenafil 100mg pill
tadalafil comprimГ© cialis 10mg sans ordonnance en france viagra 50mg sans ordonnance en france
prednisone 40mg pills deltasone brand cheap generic viagra
tadalafil 20mg kaufen ohne rezept cialis 20mg generika sildenafil generika rezeptfrei kaufen
isotretinoin 10mg without prescription cheap amoxicillin online where to buy stromectol
brand provigil 200mg Cialis buy overnight cheap acetazolamide 250 mg
buy doxycycline 100mg generic order clomid 50mg cost lasix 100mg
altace pill generic altace 5mg azelastine tablet
catapres 0.1mg over the counter buy spiriva 9 mcg pill tiotropium bromide 9mcg brand
buspar sale dilantin oral buy ditropan 5mg sale
terazosin 5mg price order arava for sale buy sulfasalazine sale
buy fosamax 35mg pill panadol price famotidine 20mg pill
benicar 10mg drug divalproex tablet order diamox 250mg online
prograf 5mg sale purchase trandate generic buy urso 300mg online