Configure PHP to work with MySQL and phpMyAdmin

My goal is to set up a forum on php only locally on my Windows 7 machine to check how it works.

I have successfully installed Apache HTTP Server and PHP v5. Then I downloaded and extracted the phpbb-forum software and put it in my root folder. Then I realized that I needed some kind of database, so I downloaded and installed MySQL. To set up my database, I also downloaded and extracted phpMyAdmin, but I cannot get it to work. When I open my browser and navigate to my phpMyAdmin folder, I just get the following:

Screenshot: http://img836.imageshack.us/img836/5139/captureqb.png

I use my Apache server to preview my site, where I use some php enable functions, so I know that I have a “working” PHP installation. The MySQL service also runs on my computer.

However, do you need to configure PHP and / or Apache to get phpMyAdmin to work correctly? I am a complete noob on this, so I suppose these could be numerous flaws.

Thanks ..// Realiserad

+3
source share
5 answers

An easier way is to install the WAMP server : it links Apache, PHP, MySQL and PHPMyAdmin, pre-configured for collaboration.

+5
source

MySQL MySQL PHP.

MySQL PHP. ( php_mysql.dll ext)

, , , php.ini:

extension=php_mysql.dll

, WAMP Server

+3

: http://www.ricocheting.com/how-to-install-on-windows/mysql - , 3- . mySQL PHP Extention ( dll) php.ini, PHP .

XAMPP WAMP, , , - Scientia potentia est: D

+1

, , php-mysql, ( ): http://mysql2.mirrors-r-us.net/downloads/connector/php/index.html

wamp, ( win/mac/etc). google "xampp", - stackoverflows.

0

PHP MySQL

  • c:\php\php.ini .

  • , :

    = php_mysqli.dll = php_mbstring.dll = php_mcrypt.dll

phpmyadmin phpmyadmin, sql.

  1. . ( ), . , (C:\project\wwwroot\phpmyadmin\config). IIS_IUSRS IUSR. /

  2. . localhost/phpmyadmin/setup/ , " ".

  3. SQL-, . . [Setup/image] [2]

  4. , . :

- - 127.0.0.1 - Windows (\ r\n)

  1. "", . (config.inc.php) (C:\project\wwwroot\phpmyadmin).

(//localhost/phpmyadmin/) root. phpMyAdmin, .

phpMyAdmin . script .

0

Source: https://habr.com/ru/post/1772357/


All Articles