phpMyAdmin

PHP login issues

左心房为你撑大大i 提交于 2020-01-11 13:42:09
问题 I am creating a login which links to a database, when entering information the login then runs a blank page and does nothing, below is my code: include "conn.php"; session_start(); $email_address = $_POST['email_address']; $password = $_POST['password']; if ($email_address && $password) { $connect = mysql_connect("computing","i7906890","password") or die ("couldn't connect!"); mysql_select_db("i7906890") or die ("couldn't find database"); $guery = mysql_query("SELECT * FROM UserAccount WHERE

MySQL regex replace?

試著忘記壹切 提交于 2020-01-11 09:15:07
问题 I've got a table with blob text fields. This blob has a lot of html in it. One of the pieces of html is an h2. I would like to find all instances of a word in the h2 tag, and replace it with another word (while leaving other words the same). For example, I would like to replace the h2 "wiggles" with "bumbles" in the following: Before: <h2>This is some wiggles html!</h2> <p>And here is some more wiggles html that could be ignored</p> <h2>And this is a decoy h2</h2> After: <h2>This is some

MySQL issue: Table 'data_dictionary.CHARACTER_SETS' doesn't exist

萝らか妹 提交于 2020-01-11 09:08:32
问题 Recently I have updated from MySQL 5.1 to 5.5 and after few weeks the following error message was displayed each time I access the phpMyAdmin application: 1146 - Table 'data_dictionary.CHARACTER_SETS' doesn't exist I have investigated the issue to the point where I have been forced to downgrade the MySQL service to 5.0.95 and then to upgrade the service once again to 5.1. None of the above outlines steps however resolved the issue and the error message in questions still persist . This error

after changing documentroot, xampp still using default phpmyadmin

六眼飞鱼酱① 提交于 2020-01-11 07:49:28
问题 I used XAMPP to install Apache, PHP, MySQL. I then personalized the c:\xampp\apache\conf\httpd.conf file thusly: # DocumentRoot "C:/xampp/htdocs" DocumentRoot "C:\Users\edward\Documents\webs" # <Directory "C:/xampp/htdocs"> <Directory "C:\Users\edward\Documents\webs"> I now can put websites e.g. here: C:\Users\edward\Documents\webs\test which map here: http://localhost/test/ However, when copied in my own phpmyadmin site here: C:\Users\edward\Documents\webs\phpmyadmin I noticed that the URL:

MySQL: Access denied for user 'userName'@'localhost'

不问归期 提交于 2020-01-11 07:48:11
问题 I am having an issue with creating and grating permissions to a user using phpMyAdmin. I am having a Java swing application and it need to connect to this database. How I created the user and granted the permission are below, step by step. Open phpMyAdmin Go to 'Users' tab. Click on Add New User Give the user name, select Any Host as the host (so the % is displayed in its text box), and mention the password. Any host is because remote access required. Select Select under Global Privileges -

PhpMyAdmin Error: Mismatch Token

陌路散爱 提交于 2020-01-11 04:54:04
问题 I've just recently been getting an error in my local installation on installed on apache on xampp. I'm running v4.0.5 of phpmyadmin. The error description is Error: Mismatch Token. Has anyone else experienced this an found a fix for it? 回答1: You can try the following Find the XAMPP php.ini file and uncomment by removing the semi-colon: session.save_path ="/tmp" Then restart apache. 回答2: Did you change anything in your apache server config files? if not, open browser, clear all history(ctrl

How to import text file to table with primary key as auto-increment

给你一囗甜甜゛ 提交于 2020-01-09 19:48:38
问题 I have some bulk data in a text file that I need to import into a MySQL table. The table consists of two fields .. ID (integer with auto-increment) Name (varchar) The text file is a large collection of names with one name per line ... (example) John Doe Alex Smith Bob Denver I know how to import a text file via phpMyAdmin however, as far as I understand, I need to import data that has the same number of fields as the target table. Is there a way to import the data from my text file into one

Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

孤街浪徒 提交于 2020-01-09 16:51:26
问题 I am using 000webhost.com and I am using phpMyAdmin there. I am getting this error from MySQL when I run my PHP script as the title says: Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted. Is there any solution for this? <?php $username="usrname"; $password="passwd"; $database="a1xxxxx_mydb"; $host="mysqlxx.000webhost.com"; mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); if (isset($_GET[

How to connect sql server with php using xampp?

不打扰是莪最后的温柔 提交于 2020-01-09 05:38:06
问题 I am trying to connect my SQL server with PHP using Xampp. I have already uploaded dll files in the ext folder but I am unable to connect it. My PHP version is 7.2.6. Uploaded dll files are - php_pdo_sqlsrv_72_ts.dll, php_sqlsrv_72_ts.dll. I have written this code to connect my SQL database with PHP- <?php $serverName = "INDO-SERV\SQLEXPRESS,1443"; $uid = "sa"; $pwd = "XXXXXX"; $databaseName = "web"; $connectionInfo = array("UID" => $uid, "PWD" => $pwd, "Database"=>$databaseName); $conn =

php-lnmp环境搭建

社会主义新天地 提交于 2020-01-09 03:44:25
参考网站: http://www.liyblog.top/p/9 1.nginx 和 php 基本安装 1. 更新 apt apt update 2. 安装 nginx apt install nginx 3. 查看 nginx 状态 systemctl status nginx 4. 安装 php apt install php php-fpm apt-get install php7.2 php7.2-fpm 5. 查看 php 版本(ubuntu 默认安装 php7.2) php -v 2.nginx 配置 php-fpm 1. 查看 nginx 具体位置,查找 nginx 配置文件位置(当前是在 /etc/nginx ) whereis nginx 2. 进入站点配置目录 cd /etc/nginx/sites-available 3. 配置站点信息 server 配置注意: 1.listen 80; 设置监听端口 2.root/var/www/html 设置项目目录 3.index index.php 设置站点目录入口文件 4.server_name www.liyblog.top 设置站点域名 5.php 配置见下图代码 6.fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; (配置 socket,要配置相对应版本的 php)