It looks like you are trying to connect to your database from Flex -
this may or may not be via a browser connection, dunno, never tried to
connect via Flex, but if you are using MAMP (I use XAMPP so similar) you
probably need to connect to MySQL via PHP scripts through a web browser.
Have you visited localhost:8888 in your browser? - you should get the
MAMP start page (URL maybe different). On my XAMPP, I also have a URL
for PHPMyAdmin - localhost:8888/phpmyadmin - try that or something
similar (help docs). If you can see PHPMyAdmin, you can connect to the
database through PHP scripts - good. You can also configure users and
privileges here, which may help with the next bit...
But, with MySQL, you sometimes get different Privileges for "socket" and
"http" based database connections - you may need to look up how to allow
connections via a socket as this seems to be what the exception is
talking about.
Anthony Cintron wrote:
I posted this problem on Yahoo Groups FlexCoders, but I figured I can give
the FlashCoders a try...
I'm having major issues with connecting to my localhost database. The link
below shows the generated link when I click on the Test Connection.
How I setup my flex app:
Create Flex Project > Application server type: PHP
Configure PHP Server > /Applications/MAMP/htdocs > root URL:
http://localhost:8888
Validate Configuration (clicked) and it is a success. I then go to Create
Application from Databas:
Connection > New > name: test > Host URL : localhost > Database: database
name > username: username > password: password > Test Connection (clicked).
I then receive the following errors:
http://privatepaste.com/320YZcjCi6
- Anthony
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01736 759321
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders