在MySQL设置文件中更改数据库信息参数的命令是什么; b?

问题描述

因此,基本上,我正在尝试通过编辑保存数据库参数的参数来配置wordpress。但这是在bash脚本中,我必须使用它来启动。而且我知道我必须使用sed,但是我不确定用于编辑MysqL设置文件的语法是什么。这是我到目前为止所得到的 ________________________________________- #configure wordpress

#moving into apache root direc where wordpress is 
cd /var/www/html
#using a thing
cp wp-config-sample.PHP PHP wp-config.php
#opening the text editor
nano wp-config.php

#this is me changing the parameters to what's in the 
#commas to configure wordpress in MysqL Setting file
sed s/define/'wordpress'/g
sed s/define/'wordpressuser'/g
sed s/define/'password'/g

这是MysqL文件的格式,其中我需要将其更改为参数。即wordpresswordpressuer和密码就是我要成为的

_________________________________________________
// ** MysqL settings - You can get this info from your web host ** //
/** The name of the database for wordpress */
define('DB_NAME','wordpress');

/** MysqL database username */
define('DB_USER','wordpressuser');

/** MysqL database password */
define('DB_PASSWORD','password');
___________________________________________________

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)