摘要:
use 命令选中数据库 use db_name; 参考资料 http://www.imooc.com/wiki/mysqllesson/choosedb.html 阅读全文
摘要:
使用命令行删除一个数据库 以root身份登录mysql sudo mysql 查看已有数据库 SHOW DATABASES; 删除数据库 DROP DATABASE newdb; 查看指定的数据库是否删除成功 SHOW DATABASES; 参考资料 http://www.imooc.com/wik 阅读全文
摘要:
使用命令行新建一个数据库 以root身份进入 MySQL sudo mysql 查看数据库 SHOW DATABASES; 新建数据库 CREATE DATABASE newdb; 验证是否新建成功 SHOW DATABASES; 参考资料 http://www.imooc.com/wiki/mys 阅读全文
摘要:
使用 root 账号登录 MySQL sudo mysql 新建一个 MySQL 子账号 CREATE USER 'test'@'localhost' IDENTIFIED BY '123456Aa@'; 账号退出登录 quit; 使用子账号登录 MySQL mysql -utest -p -P33 阅读全文
摘要:
安装教程:https://www.myfreax.com/how-to-install-mysql-on-ubuntu-20-04/ 若提示有问题,可以从这里解决: https://blog.csdn.net/MCJPAO/article/details/105027782 以root身份登录 my 阅读全文
摘要:
嵌套定义函数 在函数内部定义函数 def outter(): def inner(): print('Inside inner') print('Inside outter') inner() outter() 实现信息隐藏 def outter(): def inner(): print('ins 阅读全文