Hallo,
Ik probeer een script te installeren. Er is een database aangemaakt, maar het aanpassen van de settings.php gaat niet goed.
Mijn gebruikers- en databasenaam zijn 8whwj_voorbeeld, het wachtwoord is Wachtpoort12Voorbeelt
Waar moet ik dit invoeren? Wat doe ik fout? Ik heb van alles geprobeerd, maar zie de tekst "ERROR: Unable to connect to MySQL server! Error: Connection refused" op mijn website.
Hieronder de handleiding:Code:<?php /* Mysql database settings. */ $database_host = "localhost:3307"; $database_user = "root"; $database_password = ""; $database_name = "a_directory"; /*Don't touch below this line, if you are not very familiar with php programming*/ define( "DATABASE_HOST", $database_host); define( "DATABASE_USER", $database_user); define ( "DATABASE_PASSWORD", $database_password); define ( "DATABASE_NAME", $database_name); require_once 'lib/meekrodb.2.3.class.php'; DB::$host = DATABASE_HOST; DB::$user = DATABASE_USER; DB::$password = DATABASE_PASSWORD; DB::$dbName = DATABASE_NAME;
Installation:
- Unzip the script directory.
- Open "phpmyadmin" panel and create a new database for this script i.e "files_dir".
- Import "database.sql" (find in "database_sql" directory) file's content to your newly created database.
- Edit "settings.php" file.
- (Important) Assign "$site_url" with the full url of your installation.
i.e "https://www.example.com/files/", including the trailing slash.
Blank or wrong url, will not work.- Assign Your contact email id for "$site_admin_email".
Required to contact you for future updates.- "$site_domain" variable with your domain name i.e "torrentdownloads.com".
Will be used to append in the torrent download name like:
"[torrentdownloads.com] some_torrent_file.torrent".
So be it short and sweet.- (Important) Now edit MySql database settings variables in "db-config.php" file->
- "$database_host" : with MySql database host url.
- "$database_user" : with MySql database user name.
- "$database_password" : with MySql database password.
- "$database_name" : with MySql database name (your created for this site).
- Congratulation: Your site is ready.
Visit the site. It will take few seconds to load for the first time.
- Database connectie wordt niet gemaakt
-
16-04-2021, 14:50 #1gast74241 Guest
Database connectie wordt niet gemaakt
Laatst aangepast door gast74241 : 16-04-2021 om 15:00
-
In de schijnwerper
Laat goedkoop jouw artikelen schrijven en publiceren op unieke blogs met mooie statsLinkpartners45 premium .eu domeinnamen voor scherpe prijzenDomein te koopHoe sta jij er Online voor? Doe de Gratis Marketing Scan!Overige deals100+ blog websites met hoge DA, DR & traffic verschillende branchesLinkpartners -
16-04-2021, 15:32 #2Particulier
- Berichten
- 168
- Lid sinds
- 4 Jaar
Re: Database connectie wordt niet gemaakt
- Is de URL correct? Waar is de database gehost? Op dezelfde server (localhost) of op een externe server (IP-adres)?
- Indien externe server: staat poort 3306 open?
- Kloppen alle credentials wel écht 100%?
-
16-04-2021, 15:50 #3
- Berichten
- 1.211
- Lid sinds
- 15 Jaar
Re: Database connectie wordt niet gemaakt
Bij localhost probeer eens alleen "localhost" of "localhost:3306" in te vullen
-
16-04-2021, 16:41 #4gast74241 Guest
Re: Database connectie wordt niet gemaakt
Bedankt, het is opgelost. Er stond een spatie achter het wachtwoord.... dom.
-
17-04-2021, 09:57 #5Particulier
- Berichten
- 1.215
- Lid sinds
- 16 Jaar
-
17-04-2021, 10:49 #6gast74241 Guest
Re: Database connectie wordt niet gemaakt
Ja, ik probeer er op te letten maar ik heb het toch regelmatig. Stomme spatiebalk...
-
17-04-2021, 11:05 #7Particulier
- Berichten
- 1.215
- Lid sinds
- 16 Jaar
-
18-04-2021, 16:48 #8gast74241 Guest
Re: Database connectie wordt niet gemaakt
Komt bekend voor.
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic