MySQL学习笔记--启动停止服务

右键点击计算机->管理->服务  windows所有的服务都在,mysql等等。可以在这里启动停止服务也可以在命令行 net start/stop  <服务名>

InnoDB还是MyISAM 再谈MySQL存储引擎的选择

MySQL 5.6 for Windows 解压缩版配置安装

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

1 C:UsersAdministrator>mysql
2 ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)

如果出现如上信息,查看是否配置环境变量。

登录:  管理员:root  密码:

这里,我的电脑上安装的mysql56.新增的用户:用户: mysql123  密码:  

如果忘记密码:

mysql ERROR 1045 (28000): 错误解决办法

 1 C:UsersAdministrator>mysql -u root -p
 2 Enter password: ******  
 3 Welcome to the MySQL monitor. Commands end with ; or g.
 4 Your MySQL connection id is 1
 5 Server version: 5.6.36-log MySQL Community Server (GPL)
 6 
 7 Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
 8 
 9 Oracle is a registered trademark of Oracle Corporation and/or its
10 affiliates. Other names may be trademarks of their respective
11 owners.
12 
13 Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
14 
15 mysql> h
16 
17 For information about MySQL products and services, visit:
18 http://www.mysql.com/
19 For developer information, including the MySQL Reference Manual, visit:
20 http://dev.mysql.com/
21 To buy MySQL Enterprise support, training, or other products, visit:
22 https://shop.mysql.com/
23 
24 List of all MySQL commands:
25 Note that all text commands must be first on line and end with ';'
26 ? (?) Synonym for `help'.
27 clear (c) Clear the current input statement.
28 connect (
) Reconnect to the server. Optional arguments are db and host.
29 delimiter (d) Set statement delimiter.
30 ego (G) Send command to mysql server, display result vertically.
31 exit (q) Exit mysql. Same as quit.
32 go (g) Send command to mysql server.
33 help (h) Display this help.
34 notee (	) Don't write into outfile.
35 print (p) Print current command.
36 prompt (R) Change your mysql prompt.
37 quit (q) Quit mysql.
38 rehash (#) Rebuild completion hash.
39 source (.) Execute an SQL script file. Takes a file name as an argument.
40 status (s) Get status information from the server.
41 tee (T) Set outfile [to_outfile]. Append everything into given outfile.
42 use (u) Use another database. Takes database name as argument.
43 charset (C) Switch to another charset. Might be needed for processing binlog
44 with multi-byte charsets.
45 warnings (W) Show warnings after every statement.
46 nowarning (w) Don't show warnings after every statement.
47 
48 For server side help, type 'help contents'
49 
50 mysql> 
原文地址:https://www.cnblogs.com/zuojiayi/p/6929225.html