Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Query from different db han the install db
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Query from different db han the install db
#54151
Query from different db han the install db 9 Years ago Karma: 0
I have created a new db named 'sonnys' and created several tables.

I'm trying to query from the 'sonnys' db not the default 'bitnami_joomla' db with this query:SELECT `StoreName`, `StorePhone`, `StoreEmail` FROM `sonnys.tstores`

Thisquery executes properly in ppMySqladmin

When I load the page I get the following error message:
1146 - Table 'bitnami_joomla.sonnys.tstores' doesn't exist SQL=SELECT `StoreName`, `StorePhone`, `StoreEmail` FROM `sonnys.tstores`

When I change the db name in configuration.php I get "jos_" errors.

Is there a way to specify the specific db in the query or do I have to change my configuration.php?

Thanks
Vic
The administrator has disabled public write access.
 
#54152
Re:Query from different db han the install db 9 Years ago Karma: 747
Hello,

If you want to show data from non-Joomla! database, set "Choose source type -> SQL -> Choose DB type" parameter to "External database" value, set "Choose DB type -> DB type" parameter to "MySQL" or to "MySQL (mysqli)" value and enter connection parameters (host, user name, password, db name) in "External database" parameter section.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54176
Re:Query from different db han the install db 9 Years ago Karma: 0
Great, thanks, that worked! But the page now says 'No data available.' and the query works in phpMyAdmin. Any suggestions?
Vic
The administrator has disabled public write access.
 
#54177
Re:Query from different db han the install db 9 Years ago Karma: 747
Try to set "SQL -> Debug" parameter to "Yes". If it doesn't help to find the reason of the problem, could you provide a link to a page where the problem occurs and a temporary access to your J! backend by email so we can investigate the problem in more details?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54179
Re:Query from different db han the install db 9 Years ago Karma: 0
I tried that but no luck.

I'm running it on localhost right now, so there's no access. When I uploaded it the net I will write back with access.

Thanks,
Vic
Last Edit: 2015/04/10 01:36 By eskewvic.
The administrator has disabled public write access.
 
Go to topPage: 1