Avatar billede baltzer97 Nybegynder
15. januar 2006 - 23:35 Der er 6 kommentarer

database config

hej jeg er igang med at lave en hp, og nu har jeg uploade PHP mapperne, men nu mangler jeg bare SQL, ved ikke hvordan man gør det, og er bange for at lave fejl, kan i hjælpe mig, os et andet problem. hvad skal jeg skrive i datas/config/ min hp siger                                      2006-01-15 23:29
Fatal error : Could not connect to database !
Please check your settings in the file datas/config.php
MySQL error : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Avatar billede leif Seniormester
15. januar 2006 - 23:39 #1
Du skal typisk skrive:
Hvilken server databasen er på
Dit MySQL brugernavn
Dit MySQL password
Dit Databasenavn

Der kan være "felter" som du bare skal udfylde fx:

$host = "";
$bruger = "";
$password = "";
$database = "";

Hvor du kun skal ændre det mellem ""

Hvad er det for noget du uploader ? Der nemlig også være et installationsscript til det.
Avatar billede baltzer97 Nybegynder
16. januar 2006 - 01:26 #2
det er
http://www.neocrome.net/page.php?al=802
Neocrome - Land Down Under v802. som jeg.
altså f.eks.

$cfg['mysqlhost'] = 'localhost';    // Database host URL
$cfg['mysqluser'] = '';                // Database user
$cfg['mysqlpassword'] = '';            // Database password
$cfg['mysqldb'] = 'test';            // Database name
står der. skal jeg slette localhost, og skrive mydb2.surftown.dk

altså f.eks.
$cfg['mysqlhost'] = 'mydb2.surftown.dk';    // Database host URL
$cfg['mysqluser'] = 'Bunda_MBC';                // Database user
$cfg['mysqlpassword'] = '********';            // Database password
$cfg['mysqldb'] = 'test';        <--- Hvad skal jeg skrive i den ?
Avatar billede baltzer97 Nybegynder
16. januar 2006 - 01:51 #3
1. Get the latest Rar pack

      Download and extract the latest version from www.neocrome.net (and here only ! Any other distribution is illegal).
  2. Main configuration entries

      Open the file datas/config.php, and fill up parameters about your MySQL database.
      Do not change settings that you do not understand yet !
     
      Please notice that most of the request for technical support are caused by erroneous settings or typos in this area. So if get an error message saying that LDU or PHP cannot connect to the database, first check that the host name, database name, user name and password are ok. If you have a doubt, ask your hosting provider for the correct values.
  3. Upload files to your server

      LDU can manage an unlimited count of skins (HTML layouts), but one is usually enough.
      The default skin is set in /datas/config.php, by default it's "pandora".
      Do not upload the folder /docs, its not required by the engine.
  4. Allow file writing for some folders

      'CHMOD 777' folders (to allow files writing, do this with your FTP client) :
     
      /datas/avatars/
      /datas/thumbs/
      /datas/tmp/
      /datas/users/
  5. Create the SQL database

      Open a MySQL remote manager (PHPmyAdmin is the most famous).
      Select your database, then in the tab 'SQL' create tables with the SQL script : docs/ldu-createnew-802.sql
      (With the button 'Browse', point to the location of the file on your computer, then run the script with 'Go')
  6. Create your account

      Open your home URL with a browser, select 'login', then 'register', to create your account, and once done, log-in.
      Note that the first user to register is automatically activated and assigned the highest level available (Server-op, 99).
  7. Install the extended plugins

      When logged-in, go to the administration panel, tab "extended plugins".
      Open all the extended plugins one by one, and at bottom, click "Install all".
      Note that if you're not planning on running old LDU plugins, then then installation of the plugin "Wrapper" is optional.
  8. It's done !

      Not working ?
     
      Bad luck, so restart from the beginning and follow the steps carefully, and if after this second try the result is the same, head for the LDU forums, there's several pinned topics about common pitfalls, issues and troubleshooting. Please put your website in your profile there, so the helpers can see the problem "live".




MEN jeg forstår ikke det hele.. :/
Avatar billede baltzer97 Nybegynder
16. januar 2006 - 02:07 #4
Jeg har fået det til at virke ellers tak for hjælpen :D
Avatar billede leif Seniormester
16. januar 2006 - 06:52 #5
Skal vi så lukke ?
Avatar billede baltzer97 Nybegynder
17. januar 2006 - 00:34 #6
ja
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester