It is currently Wed Oct 23, 2019 6:38 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: You must have a server running on localhost
PostPosted: Wed Jun 12, 2019 12:21 am 
Offline
New User
New User

Joined: Wed Jun 12, 2019 12:04 am
Posts: 1
Good evening

1. I want to know what means this sentence (see subject)
2. I have 2 pc then 2 users who must access the database simultaneously for update data, for that, i have chosen to use MySqlDataBase() (for the first time). Where exactly must I put My DataBase? (please full path and the pc number and why)
3. How to know if i've a server running on localhost ? If not, how to creta it?
4. Finaly, can i see a code example for opening a mysqlDatabase? (Use Mydb.db for the BDD name )
Thank's


Top
 Profile  
Reply with quote  
 Post subject: Re: You must have a server running on localhost
PostPosted: Wed Jun 12, 2019 1:17 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue May 28, 2013 10:51 pm
Posts: 536
Location: Europe
In a nutshell, this is not how it works.

MySQL is a client-server database, therefor, you ought to have a server installed somewhere. It can be, as said, installed on localhost, meaning you will be running your client connected to a database locally. You can most certainly find installation for MySQL server for your operating system.

In case you wish to avoid such infrastructure, you could use SQLite, which is also available as a database option in PureBasic. However, some limitations are applicable, especially related to writing. That behavior, or rather difference in it, is a reason why you cannot open a "mydb.db" as a database name using MySQL.

Hope that helped.

_________________
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: You must have a server running on localhost
PostPosted: Wed Jun 12, 2019 10:40 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Sep 10, 2012 10:41 am
Posts: 123
Location: Savoie
Omega, you already have answers on the french forum.
Localhost = local - host. Hôte local
That means the server hosting your database must be local, the most common is your own PC on which you have PB installed.

_________________
MacBook Pro 13" Retina - 16 Gb - OSX 10.14 - Iphone X - iPad at home
...and unfortunately... Windows at work...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye