IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

Linux 安装mysql

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

使用 yum 安装源码包(必须有网络)

1、输入如下安装命令,安装过程中输入 y

yum install mysql-server -y

2、查看mysql 服务,并设置开机启动

chkconfig --list | grep mysql
chkconfig mysqld on

  119_1.png

3、开启 mysql 服务,下面两条命令都可以

# /etc/init.d/mysqld start     
# service mysqld start

  输入以下命令查看当前数据库名(注意语句后面要加上分号“;”)

show databases;

4、设置登录密码,并赋予权限

grant all on *.* to root@'%' identified by 'youpassword';

  刷新,使得密码生效(或者重启mysql服务)

flush privileges;

  删除别的登录信息,必须使用前面设置的密码登录

  第一步:使用数据库名称为 mysql 的库

use mysql;

  第二步:查询 mysql 下面的表

show tables;

  第三步:查询 mysql 数据库下面的 user 表

select host,user from user;

  119_2.png

  上面的 % 即是我们刚刚设置的密码登录,现在删除掉其余的登录信息

delete from user where host !='%';

  如果设置完成后想修改密码:

update user set password=password("new password") where user='root';

  

5、退出重新登录

exit;
mysql -u root -p

  如果不输入密码,直接输入 mysql 登录,会报错

  119_3.png

  输入密码登录:

  119_4.png

  

文章永久链接:https://tech.souyunku.com/?p=14767


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(60) 打赏



未经允许不得转载:搜云库技术团队 » Linux 安装mysql

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367