XAMPP为MariaDB设置root用户密码 [英] XAMPP set root user password for MariaDB

查看:69
本文介绍了XAMPP为MariaDB设置root用户密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Ubuntu/Kubuntu 16.04的XAMPP中为MariaDB设置root用户密码?

How do you set the root user password for MariaDB in XAMPP on Ubuntu/Kubuntu 16.04?

默认情况下,root用户没有设置密码.

By default the root user does not have a password set.

我正在使用XAMPP 7.1.11

I'm using XAMPP 7.1.11

推荐答案

我设法在Windows和Linux上都做到了. 在Windows上,打开命令提示符,将目录更改为\ xampp \ mysql \ bin,然后使用mysqladmin设置root用户的密码,即

I managed to do it on both Windows and Linux. On Windows, open command prompt, change directory to \xampp\mysql\bin and use mysqladmin to set password for root user i.e.

cd \xampp\mysql\bin
mysqladmin --user=root password "your_password"

在Linux(Ubuntu/Kubuntu)上,打开终端模拟器并将目录更改为/opt/lampp/bin,即

On Linux (Ubuntu/Kubuntu), open terminal emulator and change directory to /opt/lampp/bin i.e.

cd /opt/lampp/bin
./mysqladmin --user=root password "your_password"

这篇关于XAMPP为MariaDB设置root用户密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆