#登陆数据库 hisen@ubuntu:/$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 5.7.17-0ubuntu0.16.04.2 (Ubuntu)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
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> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | employees | | log4j | | mysql | | performance_schema | | ssm | | sys | +--------------------+ 7 rows in set (0.00 sec)
mysql> use employees Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Posted onEdited onInTechSymbols count in article: 292Reading time ≈1 mins.
想要获取root权限,提示如下
1 2 3
hisen@ubuntu:/var/lib$ su Password: su: Authentication failure
解决办法
1 2 3 4 5 6 7
hisen@ubuntu:$ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully hisen@ubuntu:$ su Password: root@ubuntu:# cd mysql
/** * Created by hisenyuan on 2017/3/23 at 18:02. */ public class test { public static void main(String[] args) {String s = "{'A':'a'}"; JSONObject obj= JSON.parseObject(s); System.out.println(obj.get("A")); } }