phonegap Mac环境配置MySQL(详细)
Mac环境下配置mysql
1、官⽹下载安装包(需要安装包可以私信我)
安装的时候就是傻⽠式安装,然后出现这⼀步
官⽹下载
sql/archives/community/
什么是MySQL?
sql/doc/refman/8.0/en/what-is-mysql.html
MySQL的主要功能
sql/doc/refman/8.0/en/features.html
MySQL 8.0参考⼿册
sql/doc/refman/8.0/en/
use strong password encryption和use legacy password encryption有啥区别?⼀个强密码⼀个弱密码吗?
可以这么理解。如果担⼼⽼环境不⽀持strong password encryption,可以选择成legacy password encryption。
⾃由选择以后,出现这⼀步
接着输⼊你的密码,⽤于登陆,切记
安装成功以后,mac环境点击右上⾓系统偏好设置,最底下点击MySQL
2、配置MySQL环境变量
意思就是在/usr/local/mysql/bin/⾥把mysql添加到环境变量
(1)打开终端,输⼊:sudo vim ~/.bash_profile(执⾏root权限,当前⽤户的根⽬录下的.bash_profile)
(2)然后在⾥⾯输⼊:export PATH=$PATH:/usr/local/mysql/bin
(3)按ESC,然后输⼊::wq
(4)source ~/.bash_profile(重新加载)
(5)控制台输⼊mysql --version,查看版本号就成功了
制作视频特效的软件哪个好
简单的递归算法
接如下着操作
cd /usr/local/mysql/bin
sudo su
Password:
sh-3.2# ./mysqld_safe --skip-grant-tables &
[1] 6914
sh-3.2# Logging to '/usr/local/mysql-8.0.23-macos10.15-x86_64/data/'.
2021-03-21T07:39:30.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql-8.0.23-macos10.15-x86_64/data ./mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 8.0.23 MySQL Community Server - GPL
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.手机mysql安装配置教程
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
base32编码解码
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.04 sec)
mysql>
# 下⾏表⽰重置密码,暂时没操作过
# mysql>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('12345678');
出现mysql>表⽰成功在控制台进⼊mysql命令
3、重新进⼊mysql命令⾏
mysql -uroot -p
Enter password: ******(你安装时候的密码)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 8.0.23 MySQL Community Server - GPL
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
出现Welcome以及mysql>表⽰成功进⼊mysql命令⾏
4、Navicat for MySQL
进⾏连接操作,测试连接
scala环境变量
如果出现如下情况
解决2003 - 2003 - Can’t connect to MySQL server on ‘127.0.0.1’(61 “Connection refused”)
点击⾼级、勾选使⽤套接字⽂件,然后重新连接,连接成功
5、再次操作命令⾏
1.终端输⼊进⼊bin ⽬录cd /usr/local/mysql/bin/
成功进⼊mysql命令

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。