mahtab2003 / Xera

Now Introducing a new and easy way to manage your clients and MyOwnFreeHost hosting accounts.
https://xera.eu.org/
GNU General Public License v2.0
45 stars 39 forks source link

i cant connect to MySQL on localhost #30

Closed ImLoadingUuU closed 1 year ago

ImLoadingUuU commented 1 year ago

im testing it on my local computer,but on install.php,it success to install.when i go to register/login page. it give an error

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: controllers/U.php

Line Number: 7
ImLoadingUuU commented 1 year ago

it seems like its a bug...after i checked the code. mysql password and blablablabla didnt changed

FuryCraft commented 1 year ago

Maybe import manually db.sql in your local Php My Admin

ImLoadingUuU commented 1 year ago

it seems like install.php has some problem....

ImLoadingUuU commented 1 year ago

it only import db.sql to database,didnt change config file

FuryCraft commented 1 year ago

It works fine on my local server make sure you have xammp for php 7.4.29 installed

FuryCraft commented 1 year ago

It's my version that I use what's your php version ?

ImLoadingUuU commented 1 year ago

7.4 (XAMPP)

ImLoadingUuU commented 1 year ago

OR I FORGOT TO CHMOD IT 😆😆?

FuryCraft commented 1 year ago

No, make sure you have Apache and MySQL enabled image After create a database called xera on PhpMyAdmin. After extract Xera in htdocs folder of your Xammp installation, and go to localhost/xera. Install Xera and set MySQL information:

ImLoadingUuU commented 1 year ago

yep,after i changed config file and database config file it worked. so i think theres some problem with install.php

mahtab2003 commented 1 year ago

if you are using mac or linux the install.php need file edit permission to install xera.

ImLoadingUuU commented 1 year ago

do u mean chmod?

mahtab2003 commented 1 year ago

do u mean chmod?

yes

ImLoadingUuU commented 1 year ago

ok