phpMyAdmin

Ubuntu 18.04 安装Mysql 以及 PhpMyAdmin

戏子无情 提交于 2020-02-17 01:29:42
安装Mysql 执行以下脚本来安装mysql、以及mysql客户端 sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install libmysqlclient-dev 安装完成之后,需要修改root用户密码。在修改root用户,必须要有一个高权限的账号才行。还好,mysql安装的时候保留了一个高权限账号:debian-sys-maint。这个账号的密码信息保存在/etc/mysql/debian.cnf 查看debian.cnf文件 sudo cat /etc/mysql/debian.cnf 用这个配置文件上的密码登录mysql mysql -udebian-sys-maint -p    登录完成之后执行下面的sql语句即可修改root用户的密码为root了 use mysql; #设置新密码 update user set authentication_string=PASSWORD("root") where user='root'; #同步并且更新 update user set plugin="mysql_native_password"; flush privileges; #退出 exit; 密码修改完成,重新启动下mysql /etc/init.d

Mysql ERROR: ASCII '\0' while importing sql file on linux server

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-13 08:39:33
问题 I am getting following error while importing sql file ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected. Query: ''. HELP NEEDED...!! 回答1: Try something like : mysql -u root -p -h localhost -D database --binary-mode -o < dump.sql and make sure your sql file is not zipped. 回答2: I encountered this problem,the sql file was in a valid ISCII format, I

Mysql ERROR: ASCII '\0' while importing sql file on linux server

倖福魔咒の 提交于 2020-02-13 08:38:05
问题 I am getting following error while importing sql file ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected. Query: ''. HELP NEEDED...!! 回答1: Try something like : mysql -u root -p -h localhost -D database --binary-mode -o < dump.sql and make sure your sql file is not zipped. 回答2: I encountered this problem,the sql file was in a valid ISCII format, I

phpMyAdmin 初始用户名 密码

不想你离开。 提交于 2020-02-13 01:58:00
1. phpMyAdmin 文件下 将config.sample.inc.php 复制一份 改名为config.inc.php 默认情况下 用户名是 root 密码是 空 直接就能登录了 我改了几行代码, 测试是用 root 123456 能登陆 root 空密码也可以登录 //$cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['AllowNoPassword'] = true; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = '123456'; 来源: CSDN 作者: ARVRinChina 链接: https://blog.csdn.net/chuan403082010/article/details/91347424

change default collation in phpmyadmin

那年仲夏 提交于 2020-02-12 07:28:26
问题 It seems to me that phpMyAdmin imports tables by default with collation latin1_swedish_ci, how i change this? 回答1: In your Mysql configuration change the default-character-set operative under the [mysqld] tab. For example: [mysqld] default-character-set=utf8 Don't forget to restart your Mysql server afterwards for the changes to take effect. 回答2: For Linux: You need to have access to the MySQL config file. The location can vary from /etc/mysql/my.cnf to ~/my.cnf (user directory). Add the

phpMydmin的GetShell思路

回眸只為那壹抹淺笑 提交于 2020-02-10 14:11:33
phpMyadmin简介 phpMyadmin是一个以PHP为基础的MySQL数据库管理工具,使网站管理员可通过Web接口管理数据库 。 信息收集 此部分主要需要收集的是网站物理路径,否则后续无法通过URL连接Shell 物理路径 查询数据库存储路径来推测网站物理路径,也可以通过log变量得到 select @@datadir; 配置文件爆路径:如果注入点有文件读取权限,可通过load_file尝试读取配置文件 # Windows c:\windows\php.ini # php配置文件 c:\windows\system32\inetsrv\MetaBase.xml # IIS虚拟主机配置文件 # Linux /etc/php.ini # php配置文件 /etc/httpd/conf.d/php.conf /etc/httpd/conf/httpd.conf # Apache配置文件 /usr/local/apache/conf/httpd.conf /usr/local/apache2/conf/httpd.conf /usr/local/apache/conf/extra/httpd-vhosts.conf # 虚拟目录配置文件 单引号爆路径:直接在URL后面加单引号。要求单引号没有被过滤(gpc=off)且服务器默认返回错误信息。 www.abc.com/index

Access from cPanel to phpMyAdmin with 'Welcome to phpMyAdmin' screen

无人久伴 提交于 2020-02-08 06:31:03
问题 When I access from cPanel and click on phpMyAdmin, it pops up a blank page with the line "Welcome to phpMyAdmin" and i try to refresh many times but still the same phpMyAdmin blank page Has anyone encountered this error? 回答1: After a few hours of research, I found a solution to fix the blank page in this case. In your WHM (cPanel), visit: SQL Services -> Manage MySQL® Profiles -> and in the "Actions" column, click on "Validate" and the problem will be resolved. Validate MySQL profile to fix

Access from cPanel to phpMyAdmin with 'Welcome to phpMyAdmin' screen

烈酒焚心 提交于 2020-02-08 06:29:28
问题 When I access from cPanel and click on phpMyAdmin, it pops up a blank page with the line "Welcome to phpMyAdmin" and i try to refresh many times but still the same phpMyAdmin blank page Has anyone encountered this error? 回答1: After a few hours of research, I found a solution to fix the blank page in this case. In your WHM (cPanel), visit: SQL Services -> Manage MySQL® Profiles -> and in the "Actions" column, click on "Validate" and the problem will be resolved. Validate MySQL profile to fix

phpmyadmin user interface repeating all clickable links

白昼怎懂夜的黑 提交于 2020-02-07 17:17:39
问题 Pretty much all click-able links in my interface are repeated twice. I for the life of me can't understand why or how to fix it. Everything else is working fine. Help would be much appreciated! Running digitalocean ubuntu 14.04 NGINX w/ laravel 4 http://i.stack.imgur.com/ddbHW.jpg side note: on top of installation I had to edit the sites-available/default file by inserting manually phpmyadmin location to give priority in order to bypass laravel wanting to override. addition that was made >>

phpmyadmin user interface repeating all clickable links

▼魔方 西西 提交于 2020-02-07 17:11:31
问题 Pretty much all click-able links in my interface are repeated twice. I for the life of me can't understand why or how to fix it. Everything else is working fine. Help would be much appreciated! Running digitalocean ubuntu 14.04 NGINX w/ laravel 4 http://i.stack.imgur.com/ddbHW.jpg side note: on top of installation I had to edit the sites-available/default file by inserting manually phpmyadmin location to give priority in order to bypass laravel wanting to override. addition that was made >>