Search found 5 matches

by swissbob
Fri Jun 27, 2025 9:51 am
Forum: The PureBasic Editor
Topic: Compile/Run Options - Executable Commandline
Replies: 1
Views: 157

Compile/Run Options - Executable Commandline

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 ...
by swissbob
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 ...
by swissbob
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 ...
by swissbob
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
by swissbob
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 ...