Operation notes

1. 修改xampp自带的mysql默认密码:

【转载】

MySQL 的“root”用户默认状态是没有密码的,所以在 PHP 中您可以使用 mysql_connect("localhost","root","") 来连接 MySQL 服务器;
如果您想为 MySQL 中的“root”用户设置密码,请在控制台中使用“mysqladmin”命令。例如:

在windows版本的xampp下:
\...\xampp\mysql\bin\mysqladmin -u root -p password 新密码

运行后会提示输入旧密码,如果正确,则会立即修改新输入的密码

linux版本的xampp是如下命令:

/opt/lampp/bin/mysqladmin -u root -p password 新密码

请注意,更改 root 的密码之后,不要忘记更改 PHPMyAdmin 中的相关信息。在 \...\xampp\phpmyadmin\ 下搜索“config.inc.php”并编辑下面几行:

$cfg[‘Servers‘][$i][‘user‘] = ‘root‘; // MySQL SuperUser
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘http‘; // HTTP MySQL authentification

从今往后,需要正确输入“root”的密码才能启动 PHPMyAdmin。

【原创】

xampp中自带的mysql默认密码是空的,如果要给它设置密码,可以用过如下命令:

(Windows系统)

password后面输入新密码,回车后下面提示输入旧密码,第一次设置密码时旧密码是空的,所以不用输入,直接回车,

之后xampp中自带的mysql的root账号就有了密码:root

2. The user specified as a definer (‘root‘@‘%‘) does not exist 解决方法

权限问题,授权 给 root  所有sql 权限

mysql> grant all privileges on *.* to [email protected]"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

先使用root账号登录:mysql -u root -p 回车后输入root账号的密码:root

然后使用grant和flush命令进行授权即可。

时间: 2024-11-07 11:22:33

Operation notes的相关文章

New FLY OBD Terminator Locksmith Version& Free J2534 Software

FLY company has newly released OBD Terminator Full Version& Locksmith version with free J2534 DrewTech Software,like Honda HDS, JLR SDD, Toyota TIS, IDS, etc.This is full immobilizer version with free update online. Software Version: 1. Firmware vers

Windows7 general operation/cmd notes

最近,肥仔b自从看到肥仔使用Windows快捷键后便醉心于此,因此肥仔也特意新开随笔,摘录日常学习纪要,供bb学习 : ) In my opinion, general operation and command of windows can be split as these parts. There's no doubt that you can improve your efficiency of work if you work it well 1. Windows 微徽键 ### 窗口

Notes from Data Guard

There are two types of Standby databases: 1, Physical standby database block-for-block basis the physically identical with the primary database user recovery technology 2, Logical  standby database shares the same schema definition withe the primary

[搜索] hdu 4016 Magic Bitwise And Operation

主题链接: http://acm.hdu.edu.cn/showproblem.php?pid=4016 Magic Bitwise And Operation Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 1315    Accepted Submission(s): 504 Problem Description Given n

Git for Windows v2.11.0 Release Notes

homepage faq contribute bugs questions Git for Windows v2.11.0 Release Notes Latest update: December 1st 2016 Introduction These release notes describe issues specific to the Git for Windows release. The release notes covering the history of the core

VPN debugging notes

You're using a Cisco Box Platform Symptom/Message Likely cause or solution PIXs and Cisco routers (Router) log message of: CRYPTO-4-IKMP_BAD_MESSAGE: IKE message from x.x.x.x failed its sanity check or is malformed Pre-shared key mismatch This is mor

Linux - ArchLinux Notes

Arch Linux Notes ////////////////////////////////////////////// Author: Created by Nixawk Time:   2014-12-17 1. Install Arch Linux https://wiki.archlinux.org/index.php/Beginners%27_guide_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) -------- Install Awesome

MongoDB 3.0 Release Notes

MongoDB 3.0支持WiredTiger存储引擎,提供可插拔存储引擎API,新增SCRAM-SHA-1认证机制,改进explain功能. 可插拔存储引擎API 允许第三方为MongoDB开发存储引擎 WiredTiger存储引擎 首次引入WiredTiger存储引擎,目前支持两种存储引擎: MMAPv1,3.0版本之前的存储引擎,也是3.0默认的存储引擎 WiredTiger,仅可用于MongoDB 3.0 64位版本 用法 WiredTiger支持MonoDB的所有特征,复制集和分片集群

Magic xpa 2.5发布 Magic xpa 2.5 Release Notes

Magic xpa 2.5 Release NotesNew Features, Feature Enhancements and Behavior ChangesCall with Destination – Backward Compatibility EnhancementsIn Online, the following scenarios are now possible:? Calling a program to a destination frame when the Call