xampp

How to activate the mysql database in xampp on windows platform?

别等时光非礼了梦想. 提交于 2019-12-11 06:27:49
问题 I've installed XAMPP on my Windows XP. I started the XAMPP control panel and it shows apache and mysql are running. When I check the status by going to localhost/xampp it shows: mysql : deactivated When I run php files that access the mysql database, it shows the following errors: Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://localhost:3306) in C:\xampp\htdocs\Elo_algorithm.php

PhpStorm - POST request not working, GET request does on localhost

▼魔方 西西 提交于 2019-12-11 06:09:22
问题 When using PhpStorm, when attempting to do a $_POST request on localhost, the actionable function or page I wish to direct to does not receive any data in either $_POST or $_REQUEST, however when doing a $_GET request, it does work and data is sent. test.php page... <!DOCTYPE html> <html> <head> <title>test</title> <body> <form action="test2.php" method="post"> <input type="text" name="queryform"/> <input type="submit" value="submit"/> <hr/> </form> </body> </html> test2.php page... <?php

System Error : Xamp installation dll file missing error

六月ゝ 毕业季﹏ 提交于 2019-12-11 06:01:34
问题 I have been using Xamp for long time. but now days after installation when I try to start apache my windows7 32-bit PC which showing one error api-ms-win-crt-runtime-l1-1-0.dll file is missing and the alert box showing a recommendation to reinstall the Xamp to fix this problem.but I tried it several times and still which showing the same error( Note :- it's MySql is working fine).Please help me.I'm added the screen shot below.Thanks in advance. 回答1: try installing Visual C++ Redistributable

I want To Make mcrypt work on xampp windows with php 7.2 Error: Call to undefined function mcrypt_module_open()

情到浓时终转凉″ 提交于 2019-12-11 05:29:54
问题 For a testing purpose I want to get rid of this error " Uncaught Error: Call to undefined function mcrypt_module_open() " . I know its deprecated. Tried pasting the .dll file and addind this line in the php.ini (extension=php_mcrypt extension=libmcrypt) and no use .. Any Help ? 回答1: mcrypt is longer used and has now been deprecated since 7.1 and removed in 7.2 as it wasn't being maintained any longer. You can use functions such as: OpenSSL Encryption Libsodium PHP's inbuilt password hash

How to Restoring MySQL database from physical files

十年热恋 提交于 2019-12-11 05:24:47
问题 Unfortunately I uninstalled Xampp in my windows machine, there are about 50 databases in /xamp/mysql/data folder. I have not taken backup script, but I have a copy of Xamp/mysql/data folder.How can I restore MySQL Databases using that Data Directory. Thanks in Advance 回答1: I was find out solution Install new xampp Copy your old database folder from xampp\mysql\data\databasefolder to Paste in your running xampp folder C:\xampp\mysql\data After that stop mysql and apache service then backup

“FATAL: no pg_hba.conf entry for host” but I can connect trough pgAdmin

余生颓废 提交于 2019-12-11 05:23:38
问题 I'm having a little trouble with my dev environment for a CakePHP based project. The thing is, CakePHP can connect in production, but if I run trough XAMPP on my PC, then throws me a FATAL: no pg_hba.conf entry for host "myexternalip", user "dbuser", database "dbname", SSL off but using the same parameters I can connect from my PC trough pgAdmin. I've tried some googling tips that I've found like copy the libpq.dll from c:\xampp\php to c:\xampp\apache\bin but, no luck, had checked pnp.ini and

MySQL DBCC CHECKIDENT syntax error

一曲冷凌霜 提交于 2019-12-11 05:09:43
问题 I'm confused by this syntax error I keep getting when I try to execute: DBCC CHECKIDENT('database', RESEED, 1) In PHPMyAdmin ... Error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DBCC CHECKIDENT('database', RESEED, 1)' at line 1 The result looks like this 回答1: DBCC CHECKIDENT('table', RESEED, 1) is for SQL Server. Use alter table ... auto_increment instead. http://dev.mysql.com/doc/refman/5.0

Access denied error with php xampp

旧时模样 提交于 2019-12-11 05:05:25
问题 When I try to access the database with my web application I get: mysqli::mysqli(): (HY000/1045): Access denied for user 'php'@'localhost' (using password: YES) in C:\xampp\htdocs\Forum\accounts\PlayerAccount\Login.php on line 4 Error connecting to MySQL database (1045) Access denied for user 'php'@'localhost' (using password: YES) I am not using root for the application. I made an user called PHP with all privileges. I am using xampp mysql database but it's still not working. edit: on request

why php mail function not work in xampp

喜夏-厌秋 提交于 2019-12-11 04:32:44
问题 I have problem i use xampp . i want check mail form but i can't see any result . i config Mercury/32 like this tutorial in this site : http://system66.blogspot.com/2010/01/how-to-send-mail-from-localhost-with.html i check email by outlook it's work . i check send mail by Mercury send mail in admin panel and it's correctly work . but i can't send email and can not recive this email by outlook when i use mail php function . why ? please help me 回答1: I got it . i set this config and now i can

How can I access XAMPP/Lampp folder via Terminal on Mac

别来无恙 提交于 2019-12-11 04:28:37
问题 I recently started using XAMPP on Mac and it installed the "lampp" folder under "Shared" and showing as an IP address in Finder. So I can access the files via Finder but I'm unable to cd into the folder via Terminal. The Shared folder is simply not visible. I tried /Volumes to see all volumes, but "lampp" wasn't listed, as well mounting it somehow but that also didn't work. Any ideas? It's so odd that I see the folder in Finder but not in Terminal! 回答1: I had the same problem the route for