使用mysql的mycli插件

x33g5p2x  于2021-12-06 转载在 Mysql  
字(1.1k)|赞(0)|评价(0)|浏览(301)

[root@localhost ~]# systemctl stop firewalld.service 
	[root@localhost ~]# setenforce 0
	[root@localhost ~]# yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel ttk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
	[root@localhost ~]# cd /opt/
	[root@localhost opt]# ls
	[root@localhost opt]# rz -E
	rz waiting to receive.
	[root@localhost opt]# ls
	Python-3.7.7_.tgz
	[root@localhost opt]# tar zxf Python-3.7.7_.tgz 
	[root@localhost opt]# ls
	Python-3.7.7  Python-3.7.7_.tgz
	[root@localhost opt]# cd Python-3.7.7/
	[root@localhost Python-3.7.7]#yum -y install gcc
	[root@localhost Python-3.7.7]# ./configure --prefix=/usr/local/Python-3.7.7/
	[root@localhost Python-3.7.7]# make && make install -j4
	[root@localhost Python-3.7.7]# ln -s  /usr/local/Python-3.7.7/bin/python3.7  /usr/bin/python37
	[root@localhost Python-3.7.7]# ln -s /usr/local/Python-3.7.7/bin/pip3.7 /usr/bin/pip37
	[root@localhost Python-3.7.7]# pip37 install mycli -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
	[root@localhost Python-3.7.7]# ln -s /usr/local/Python-3.7.7/bin/mycli /usr/bin/mycli
	[root@localhost ~]# systemctl start mariadb.service 
	[root@localhost ~]# mycli -u root -p 123123

相关文章

最新文章

更多