Jump to content

michaeljdornan

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by michaeljdornan

  1. i think it will not work through phpmyadmin, you can use sqlyog (MySQL GUI Tools), download it from here https://www.webyog.com/

     

    now when you will execute multiple queries in sqlyog query editor, it will give you multiple result in different tabs below the editor, now you will need to export this result one by one in which ever format you want (i.e. csv,sql etc.)

     

    may this will help you

     

     

    Hi PravinS that worked great thanks although still issues with any database with a - in it, half the databases didn't return any data and I got this in the log:

     

    Query: SELECT `NickName`,`FirstName`,`LastName`,`Email` FROM ziguana_cystic-fibrosis.Profiles LIMIT 0, 1000
     
    Error Code: 1064
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-fibrosis.Profiles LIMIT 0, 1000' at line 1
     
    Execution Time : 0 sec
    Transfer Time  : 0 sec
    Total Time     : 0.558 sec
     
    Thanks
  2.  

    try using DATABASENAME.TABLENAME in you select query like this

    SELECT `NickName`,`FirstName`,`LastName`,`Email` FROM DATABASENAME.Profiles;
    

    Hi, thanks for the help, PravinS is probably the go for me, quick and easy... I built the query, one issue, some of the databases have a - in them so 'database-name.Profiles;' and SQL is complaining about the - .... I've tried removing and leaving a space, no joy, can I wild card it?

     

    Thanks

  3. I have 100+ websites all sitting on a single host and accessable via phpMyAdmin. Each one of these websites uses the same database structure.

    I want to pull out all the profile specific information to do a mass mail to all my registered users. I'd then need to combine, sort, remove duplicates and upload to my mail client, I have the following query:

    SELECT `NickName`,`FirstName`,`LastName`,`Email` FROM `Profiles`;

    What I want to know is can I build a query where I can execute a similar statement yet pull the data from every database and just do one export? Then I can clean the data and upload and send everyone an email? Is this possible?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.