>
> dbo::backend::MySQL mysql("sre_db","username","password","IP",3306);
>
> sure this must work, you have to make sure that port is set correctly as
the same port that MySQL server is using also if you are trying to connect
to MySQL on another pc over network or internet you must set the
permissions in order to connect to MySQL server.


On Mon, Mar 3, 2014 at 9:28 PM, Tor Arne Fallingen <[email protected]>wrote:

> That actually makes a lot of sense to me. The thing is, Im trying to run
> that first program from the dbo tutorial, and I can't really see where to
> pass the arguments for the connection itself. I guess you got the code in
> the examples that came with Wt, under features and dbo :)
> Would this be the way to do it; altering
>
>  dbo::backend::MySQL mysql("sre_db");
>
> to
>
>  dbo::backend::MySQL 
> mysql(<<sre_db>>,>>username>>,>>password>>,>>IP>>,>>port>>);
>
> ?
>
> Because being able to set up an IP:port socket would be beyond nice for me
> while testing and creating this application :)
>
> Tor
>
>
> 3. mars 2014 kl. 20:09 skrev Muhammad Nasser Al-Noimi <[email protected]>:
>
> Hi Tor,
>
> I think the error you've got is because you didn't pass the database
> password. You need to initialize the connection and pass database user name
> and password, use the constructor for connection like this:
> connection_("dbname", "username", "password", "127.0.0.1", 3306)
>
>
>
>
> On Mon, Mar 3, 2014 at 8:21 PM, Tor Arne Fallingen <[email protected]>wrote:
>
>> Im trying to start using the MySQL backend, but I keep getting this
>> message:
>>
>> libc++abi.dylib: terminating with uncaught exception of type
>> Wt::Dbo::backend::MySQLException: MySQL : Failed to connect to database
>> server: Access denied for user 'root'@'localhost' (using password: NO)
>>
>> Apparently I need to set a password, but where and how? Im basically
>> trying to run the tutorial with minor adjustments, switching sqlite3 with
>> mysql and adding a database that I know exist. Could anyone spare me a
>> moment and explain what Im doing wrong?
>>
>> -Tor
>>
>>
>> ------------------------------------------------------------------------------
>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>> Perforce.
>> With Perforce, you get hassle-free workflows. Merge that actually works.
>> Faster operations. Version large binaries.  Built-in WAN optimization and
>> the
>> freedom to use Git, Perforce or both. Make the move to Perforce.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and
> the
> freedom to use Git, Perforce or both. Make the move to Perforce.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
>
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and
> the
> freedom to use Git, Perforce or both. Make the move to Perforce.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to