zoukankan      html  css  js  c++  java
  • 全栈工程师mysql学习过程

    mysql学习过程

    mysql 安装

     apt install mysql-server

    安装失败按提示更新apt

    MySQL卸载

    1 sudo apt-get autoremove --purge mysql-server-8.0
    2 sudo apt-get remove mysql-server
    3 sudo apt-get autoremove mysql-server
    4 sudo apt-get remove mysql-common(非常重要)
    dpkg --list|grep mysql
    sudo apt-get remove mysql-*

     清理残留数据

     dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 

    MySQL配置文件路径:

    vim /etc/mysql/mysql.conf.d/mysqld.cnf
    skip-grant-tables # 允许无密码登录

    启动MySQL

    service mysqL start

    本机登录mysql -h xxx  -P 3306 -u root -p,ip、端口、用户、密码。

    初始化安装,一般是没有密码,需要自己添加密码权限

    mysql
    ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'q123456';

     mysql查看所有的数据库

    mysql> show databases;
    smallbore,world
  • 相关阅读:
    cct,web技术
    cct信息安全
    TFS2010安装与管理
    centos7 opera济览器安装
    Hadoop 的常用组件一览
    Exception in thread "main" java.net.BindException: Address already in use: JVM_Bind
    gcc manual
    5350.support
    meminfo,df,
    WCF
  • 原文地址:https://www.cnblogs.com/bore/p/15598633.html
Copyright © 2011-2022 走看看