Home Database Mysql Tutorial MariaDB绿色版windows下服务注册及密码修改

MariaDB绿色版windows下服务注册及密码修改

Jun 07, 2016 pm 02:57 PM
mariadb windows Revise password Serve register

搞了一个多小时者在网上查阅总结的实践成功MariaDB绿色版的服务注册及密码的修改,下面分享出来,请大家勿喷。 MySQL Maria MariaDB 1、初始化与创建WINDOWS服务 mysql_install_db.exe --datadir=D:\mariadb-10.0.16-win32 --service=MySql --password=dsidea

搞了一个多小时者在网上查阅总结的实践成功MariaDB绿色版的服务注册及密码的修改,下面分享出来,请大家勿喷。 MySQL Maria MariaDB
1、初始化与创建WINDOWS服务
   mysql_install_db.exe --datadir=D:\mariadb-10.0.16-win32 --service=MySql --password=dsideal
2、启动服务
   sc start MySql
3、删除服务
   sc stop MySql
   sc delete MySql
   rmdir /s /q D:\mariadb-10.0.16-win32
4、修改默认登录密码
   1)在windows下的对应目录找到my.ini文件,键入内容skip-grant-tables保存。
   2)重启服务
      net stop MySql
      net start MySql
   3)登录数据库:mysql -uroot -p ,出现“Enter password:”时直接回车。
   4)在MariaDB数据库,进入时需要切换用户:use mysql;
   5)修改密码:update user set password=PASSWORD("newpass")where user="root";注:这里修改的是localhost下root用户的密码,在数据库管理工具中,数据库/IP这一项填写localhost.
   6)更新权限:flush privileges;
   7)退出:quit;
   8)修改my.ini文件,去掉内容skip-grant-tables后保存。
   9)重启服务
      net stop MySql
      net start MySql
5、登录数据库:
   mysql -uroot -p     Enter password:sy31214
   use mysql         切换用户(myqql表示自带的数据库)
   select * from user;    调试是否能正确查询
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? Apr 01, 2025 am 08:06 AM

The problem of comparing and synchronizing BeyondCompare files: Case sensitivity failure when using Beyond...

Four ways to implement multithreading in C language Four ways to implement multithreading in C language Apr 03, 2025 pm 03:00 PM

Multithreading in the language can greatly improve program efficiency. There are four main ways to implement multithreading in C language: Create independent processes: Create multiple independently running processes, each process has its own memory space. Pseudo-multithreading: Create multiple execution streams in a process that share the same memory space and execute alternately. Multi-threaded library: Use multi-threaded libraries such as pthreads to create and manage threads, providing rich thread operation functions. Coroutine: A lightweight multi-threaded implementation that divides tasks into small subtasks and executes them in turn.

How to avoid third-party interfaces returning 403 errors in Node environment? How to avoid third-party interfaces returning 403 errors in Node environment? Apr 01, 2025 pm 02:03 PM

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

Where to download Python .whl files under Windows? Where to download Python .whl files under Windows? Apr 01, 2025 pm 08:18 PM

Python binary library (.whl) download method explores the difficulties many Python developers encounter when installing certain libraries on Windows systems. A common solution...

Why can't my code get the data returned by the API? How to solve this problem? Why can't my code get the data returned by the API? How to solve this problem? Apr 01, 2025 pm 08:09 PM

Why can't my code get the data returned by the API? In programming, we often encounter the problem of returning null values ​​when API calls, which is not only confusing...

How to efficiently read Windows system logs and get only information from the last few days? How to efficiently read Windows system logs and get only information from the last few days? Apr 01, 2025 pm 11:21 PM

Efficient reading of Windows system logs: Reversely traverse Evtx files When using Python to process Windows system log files (.evtx), direct reading will be from the earliest...

How to speed up the loading speed of PS? How to speed up the loading speed of PS? Apr 06, 2025 pm 06:27 PM

Solving the problem of slow Photoshop startup requires a multi-pronged approach, including: upgrading hardware (memory, solid-state drive, CPU); uninstalling outdated or incompatible plug-ins; cleaning up system garbage and excessive background programs regularly; closing irrelevant programs with caution; avoiding opening a large number of files during startup.

See all articles