Welcome Guest, Not a member yet? Register   Sign In
Server not found
#1
Question 
(This post was last modified: 05-16-2022, 01:42 AM by B.R..)

Hello,

I am working together with another person. We are using xamp to develop the website.
On my computer with windows 10 everything works fine, but he gets this error. It's showing up after he tries to login or signup to the website.
So I believe it has something to do with the database as every function works except these two interacting with the database.
He tried also with windows 10, 11 and also WAMP. Additionaly he uses the same version of the website. All his CI4 files are equal as mine

[Image: txzgbifgb3nz.png]
Reply
#2

(This post was last modified: 05-17-2022, 12:09 AM by InsiteFX.)

We cannot see the error in the image the image is to small.

But taking a guess here I would say that the database password is wrong.

Set MySQLi password.


Code:
// Shell from Control Panel or CMD - change your_password to yours.
cd mysql\bin
mysqladmin --user=userName password "yourPassword"

Try that.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

1. Edit file
Code:
C:\Windows\System32\drivers\etc\hosts
add code:
Code:
127.0.0.1 testsite.test

2. In XAMPP Control Panel -> click button SHELL. In command line, use cd command to move code directory (ex:c:\xampp\htdocs\testsite)

3. use command:
Code:
php spark serve --host testsite.test --port 80

Note: In file .env and App/Config/App.php use must config base_url is: testsite.test

if OK, open web browser and access: testsite.test
Reply
#4

I have found the problem. Turns out that he hasn't edited the hosts file.
Thanks for your answers.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB