首页 \ 问答 \ 如何在windows上配置并运行Nginx

如何在windows上配置并运行Nginx

更新时间:2022-03-23 16:03

最满意答案

1. 用以下命令启动MySQL,以不检查权限的方式启动;
[root@MySQL mysql]# safe_MySQLd –skip-grant-tables &
[root@MySQL mysql]# MySQLd –skip-grant-tables &

2. 然后用空密码方式使用root用户登录MySQL
[root@MySQL mysql]# MySQL -u root

3. 修改root用户的密码;
MySQL> update MySQL.user set password=PASSWORD(‘新密码’) where User=’root';
MySQL> flush privileges;
重新启动MySQL,就可以使用新密码登录了。

其他回答

centos下yum暂时没有mysql-server直接安装包;
mariadb是mysql社区开发的分支,也是一个增强型的替代品;
安装mariadb
yum -y  install mariadb-server mariadb mariadb-devel
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
firewall-cmd --permanent --add-service mysql
systemctl restart firewalld.service
iptables -l -n|grep 3306
登录数据库查看下是否有变好
msyql -uroot -p
show databases;

相关问答

更多
  • 之前的项目全都在windows系统环境下部署的,这次尝试在Linux系统环境下部署,于是这次我们组织在7台主机上安装了JDK、Maven、Jboss其中一台安装了Mysql,并将局域网配置好,终于大功告成了。下面将安装步骤与大家分享! 系统版本:centos6.3-i386 32位操作系统 硬件配置:内核 Intel(R) Pentium(R) 4 CPU 3.00GHz 内存998.5M 安装环境:使用shell 命令 此次安装在桌面环境下,使用shell命令进行安装,下载安装包为: MySQL-5.6. ...
  • 如何设置centos7 mysql5.6启动脚本 1、设置开机自启动 chkconfig mysqld on 2、/etc/init.d/mysqld start /etc/init.d/mysqld stop 3、centos6以前 services mysqld start services mysqld stop 4、centos7需要用systemctl systemctl start mysqld systemctl stop mysqld
  • 1.按照提示安装好mysql 2.运行cmd 进入mysql的安装目录,我的安装目录C:\Program Files\MySQL\MySQL Server 5.6\bin 输入 cd C:\Program Files\MySQL\MySQL Server 5.6\bin 3.采用mysqld将mysql注册为服务,命令为:mysqld -install MySQL 4.启动服务:net start MySQL 5.然后登陆,因为root用户的默认密码为空,直接回车进入 mysql -u root -p 6. ...
  • 1. 用以下命令启动MySQL,以不检查权限的方式启动; [root@MySQL mysql]# safe_MySQLd –skip-grant-tables & [root@MySQL mysql]# MySQLd –skip-grant-tables & 2. 然后用空密码方式使用root用户登录MySQL [root@MySQL mysql]# MySQL -u root 3. 修改root用户的密码; MySQL> update MySQL.user set password=PASSWORD(‘新 ...
  • 安装时选择不需密码才行
  • Centos7将默认数据库mysql替换成了Mariadb,对于我们这些还想用mysql的人来说并不是一个好消息。
  • mysql默认是没有密码的,直接用root密码空就可以登陆。如果之前密码忘掉,可以通过修改mysql配置文件跳过验证,进入后修改密码
  • centos下yum暂时没有mysql-server直接安装包; MariaDB是MySQL社区开发的分支,也是一个增强型的替代品; 安装MariaDB yum -y install mariadb-server mariadb mariadb-devel systemctl start mariadb systemctl enable mariadb mysql_secure_installation firewall-cmd --permanent --add-service mysql systemc ...
  • mysql5.6 密码[2022-07-11]

    MySQL 5.6 版本发现安装后,使用空密码无法登陆 安装的过程中有这样的一句话: A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER ! You will find that password in '/root/.mysql_secret'. You must change that password on your first connect, no other statement but 'SET PASSWORD' will be acc ...
  • 进入mysql使用一下语句: grant select,insert,update,delete,file on *.* to text@"%" identified by "123456"; 意思是创建 text这个账户密码为123456 拥有所有远程连接权限(%表示所有,也可改成相应的ip或域名),并拥有对所有库的 插入,更新,删除权限。

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)