当前位置: 首页 > wzjs >正文

网站地图怎么样做更利于收录seo优化搜索推广

网站地图怎么样做更利于收录,seo优化搜索推广,网站页面宽度,域外网站一 系统mysql用户密码查询 1、在工程目录如/usr/local/httpd/下的*.php中查找类似有db.inf的文件 以php为例。 2、在代码文件中确认有数据库连接的的功能实现 例如: $dbconf parse_ini_file(/usr/local/httpd/conf/db.inf); $link mysql_connect($dbconf[d…

一 系统mysql用户密码查询

1、在工程目录如/usr/local/httpd/下的*.php中查找类似有db.inf的文件

以php为例。

2、在代码文件中确认有数据库连接的的功能实现

例如:

$dbconf   = parse_ini_file('/usr/local/httpd/conf/db.inf');
$link = mysql_connect($dbconf['db_address'],$dbconf['db_username'],$dbconf['db_password']);
mysql_select_db('username',$link);

3、cat /usr/local/httpd/conf/db.inf可看到用户名密码,例如:

db_address=localhost
db_username=user01
db_password=pass
db_name=dbname01

4、登录验证:

/usr/local/mysql/bin/mysql -u user01 -ppass

二 不知道mysql root密码的情况下再增加一个超级用户办法【简要说明】

1 杀死原有进程

kill -9 mysql进程

2 启动mysql无权限表模式

/usr/local/mysql/bin/mysqld_safe --datadir=/mysql_data --user=mysql --pid-file=/mysql_data/mysql.pid --skip-grant-tables &

3 不需要口令即可登录mysql:

/usr/local/mysql/bin/mysql

以上无权限表模式启动后可能要稍等片刻,才能执行/usr/local/mysql/bin/mysql
否则会报ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)

4 新建名为admin的超级用户

mysql> GRANT ALL PRIVILEGES ON . TO admin@localhost IDENTIFIED BY ‘xxxxxx’ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON . TO admin@localhost IDENTIFIED BY ‘xxxxxx’ WITH GRANT OPTION;无法执行,
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

mysql> insert into mysql.user(Host,User,Password) values(“%”,“admin”,password(“xxxxxx”));
Query OK, 1 row affected, 3 warnings (0.00 sec)

mysql> flush privileges; <-------------------------------------------重要
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON . TO admin@localhost IDENTIFIED BY ‘xxxxxx’ WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON . TO admin@“%” IDENTIFIED BY ‘xxxxxx’ WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

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

$ /usr/local/mysql/bin/mysql -uadmin -pxxxxx;
mysql> use mysql
Database changed
mysql> select * from user;

三 查看数据库概况

1 数据库版本

select VERSION()

mysql --version
或简写为:
mysql -V

在这里插入图片描述

2 查看变量情况

mysql> show variables like ‘%char%’;
±-------------------------±---------------------------------+
| Variable_name | Value |
±-------------------------±---------------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/local/mysql/share/charsets/ |
±-------------------------±---------------------------------+
8 rows in set (0.00 sec)

3 查看用户情况

mysql> select * from user;
在这里插入图片描述

四 授权

1 授权查询和更新权限

GRANT SELECT ON db01.table01 TO ‘user01’@‘%’ IDENTIFIED BY ‘password’;
GRANT UPDATE ON db01.table01 TO ‘user01’@‘%’ IDENTIFIED BY ‘password’;

http://www.dtcms.com/wzjs/469944.html

相关文章:

  • 搭建网站属于什么专业seo排名软件怎么做
  • 建设部网站水利设计资质国内新闻最新5条
  • 山东济宁网站建设南通百度网站快速优化
  • 大坪网站建设巢湖seo推广
  • 利用excel做填报网站星巴克网络营销案例分析
  • flash做的网站青岛seo百科
  • dedecms 做网站seo门户网价格是多少钱
  • 网站报价短视频广告投放平台
  • wordpress文章顶置福州百度首页优化
  • 沧州模板建站开源项盿网站开发步骤
  • 怎样做网站全屏代码百度软件商店
  • 人力资源网站建设计划书樱桃bt磁力天堂
  • 外贸自建站多少钱推广链接点击器app
  • 楚雄做网站建设的公司惠州seo关键词推广
  • 网站为什么百度搜不到网站网络营销推广
  • 百度竞价推广是什么搜外seo视频 网络营销免费视频课程
  • 做旅游网站的yi国内专业seo公司
  • 沈阳seo网站管理免费软件下载网站有哪些
  • 做网站要准备的资料网络营销网站平台有哪些
  • 网站开发会计分录域名申请的流程
  • 建设类似衣联网的网站百度网盘网页版登录首页
  • 做网站没有高清图片怎么办制作电商网站
  • 建德网站建设公司泉州seo代理商
  • 百度搜寻网站缩略图如何添加品牌公关公司
  • 海南网站推广建设重庆关键词seo排名
  • 即墨哪里有做网站的电商入门基础知识
  • 做网站前端用什么语言百度智能云建站
  • 南宁网站优化公司哪家好手机系统优化
  • 优质高等职业院校建设申报网站正规seo排名多少钱
  • 四川网站设计网站怎样做推广