I have been using PureBasic for years but I have never had occasion to use this option before....
The compiled console application is working correctly with calls to ProgramParameter correctly returning the values as expected, but I can't get it to run in the IDE.
I enter the value in the ...
Search found 5 matches
- Fri Jun 27, 2025 9:51 am
- Forum: The PureBasic Editor
- Topic: Compile/Run Options - Executable Commandline
- Replies: 1
- Views: 157
- Fri Aug 30, 2024 6:39 pm
- Forum: Coding Questions
- Topic: UseMySQLDatabase() Failure
- Replies: 12
- Views: 2657
Re: UseMySQLDatabase() Failure
Seems like MySQL is using a new password mode, you're not alone here: https://stackoverflow.com/questions/49194719/authentication-plugin-caching-sha2-password-cannot-be-loaded#49966020
May be you can try one of the solution posted here.
Thanks and yes I'm aware of this and have already "fixed ...
- Sun Aug 25, 2024 6:55 pm
- Forum: Coding Questions
- Topic: UseMySQLDatabase() Failure
- Replies: 12
- Views: 2657
Re: UseMySQLDatabase() Failure
So I modified the program as follows, based on comments here:
UseMySQLDatabase("libmariadb.dylib")
; You should have a server running on localhost
;
OpenConsole()
If OpenDatabase(0, "host=localhost port=3306 dbname='test'", "user", "password", #PB_Database_MySQL)
PrintN("Connected to MySQL ...
UseMySQLDatabase("libmariadb.dylib")
; You should have a server running on localhost
;
OpenConsole()
If OpenDatabase(0, "host=localhost port=3306 dbname='test'", "user", "password", #PB_Database_MySQL)
PrintN("Connected to MySQL ...
- Sat Aug 24, 2024 2:39 pm
- Forum: Coding Questions
- Topic: UseMySQLDatabase() Failure
- Replies: 12
- Views: 2657
Re: UseMySQLDatabase() Failure
Machine: Apple M1
MacOS: Sonoma 14.4.1
PureBasic 6.11 LTS
MacOS: Sonoma 14.4.1
PureBasic 6.11 LTS
- Sat Aug 24, 2024 9:58 am
- Forum: Coding Questions
- Topic: UseMySQLDatabase() Failure
- Replies: 12
- Views: 2657
UseMySQLDatabase() Failure
This should have been so simple... copy the example code from the help file and run it...
UseMySQLDatabase()
; You should have a server running on localhost
;
If OpenDatabase(0, "host=localhost port=3306 dbname='test'", "user", "password")
Debug "Connected to MySQL"
Else
Debug "Connection ...
UseMySQLDatabase()
; You should have a server running on localhost
;
If OpenDatabase(0, "host=localhost port=3306 dbname='test'", "user", "password")
Debug "Connected to MySQL"
Else
Debug "Connection ...