Linking Postfix to the PostfixAdmin MySQL database

I am building a hosting platform on OS X Server. Thus, I want to manage mail users and virtual domains in a database.
First, I followed Pterobyte's advises in order to manage virtual domains with Postfix, using Apple's administration tools (http://downloads.topicdesk.com/virtual-users.pdf).
Then, I recompiled Postfix with MySQL support, following advises found on this forum.
Finally, I installed Postfix Admin and its MySQL database.
And everything works! So, I should be happy, but the glue between Postfix and the PostfixAdmin database is missing. The reason is very simple: Postfix is still configured to use the "/var/imap" database. So, my questions are very simple:
1. How can I say to Postfix to use the Postfix Admin MySQL database instead of LDAP?
2. Will I still be able to use Apple's Server Admin to manage my mail service? Of course, not for users and virtual domains management, but at least to start/stop mail, read logs...
David

Alex,
You will find my current master.cf at the end of this post.
-Use 127.0.0.1 instead of localhost.
I tried that, but it seems to imply that I modify my MySQL configuration, which is not so easy because I have 10 sites running on MySQL for clients. But I will try again later.
-Check permissions on the socket are correct.
777 should be good.
-Check if you have any issues with the socket locking up
Hard to tell, but my other sites connect to MySQL with no error.
So, here is my master.cf :
==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpdtlswrappermode=yes -o smtpdsasl_authenable=yes
#submission inet n - n - - smtpd
# -o smtpdenforcetls=yes -o smtpdsasl_authenable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtphelotimeout=5 -o smtpconnecttimeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# maildrop. See the Postfix MAILDROP_README file for details.
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
# The Cyrus deliver program has changed incompatibly, multiple times.
old-cyrus unix - n n - - pipe
flags=R user=cyrusimap argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
cyrus unix - n n - 10 pipe
user=cyrusimap argv=/usr/bin/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
smtp-amavis unix - - y - 2 smtp
-o smtpdata_donetimeout=1200
-o smtpsend_xforwardcommand=yes
-o disablednslookups=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o localrecipientmaps=
-o relayrecipientmaps=
-o smtpdrestrictionclasses=
-o smtpdclientrestrictions=
-o smtpdhelorestrictions=
-o smtpdsenderrestrictions=
-o smtpdrecipient_restrictions=permitmynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpdenforcetls=no
-o strictrfc821envelopes=yes
-o smtpderror_sleeptime=0
-o smtpdsoft_errorlimit=1001
-o smtpdhard_errorlimit=1000
-o receiveoverride_options=no_header_bodychecks
As you can see, the 2 chrooted processes are :
smtp-amavis unix - - y - 2 smtp
127.0.0.1:10025 inet n - y - - smtpd
I tried to unchroot smtp-amavis, but it did not solve anything (except that I do not have any more information in mail.log, but I do not know if it is related). Anyway, in amavis.log, I have:
Apr 25 09:22:35 beta.local /usr/bin/amavisd[808]: (00808-01) mailviasmtp: 451 4.1.0 <[email protected]>: Temporary lookup failure
Apr 25 09:26:13 beta.local /usr/bin/amavisd[807]: (00807-02) mailviasmtp: 451 4.1.0 <[email protected]>: Temporary lookup failure
So my problem is not solved.
Thanks for you help
David

Similar Messages

  • What's the default mysql database name in Crystal Report Server XIR2

    Hi Experts,
    I am upgrading Crystal Report Server from XIR2 to XI3.1.
    I need to know the default mysql database name when upgrading.
    Anyone knows?

    Hi,
    In XI3.1, when BOE installed with default mySQL DB then the installer creates a DataSource with name "Business Objects CMS".
    And the DB name will be "BOE120".
    I guess in XIR2 DB name will be ''BOE115".
    Also, if you launch the CMC admin page then in the settings link the DB info will be displayed.
    -Noor.
    Edited by: Nooreazam Sayyad Abdullas Peerzade on Dec 15, 2010 1:54 PM

  • Linking Azure website with Remote mysql database in Cpanel

    I am creating an azure website eg calvynlee.azurewebsites.net
    In my hosting cpanel account, I create a mysql db & user, in order to link the azure website with this mysql db, I had place a "%" in the remote mysql section.
    It works, but when I remove the % from the remote mysql section. Azure website unable show error connection with my database.
    Question:
    Understand that placing % is allow all remote connection to my database. For security purpose, placing % is not recommended, and placing the website IP address is the most suitable practice.
    Unfortunately, I place the website IP (by ping the website and obtain the IP) in remote mysql section is not working.
    My cpanel service provider mention that the IP I obtain is not the right IP, there will be another host sever IP
    What is the actual IP address I should put? and How to find this right IP?

    Hi,
    Based on your description, your mysql db is created in cpanel, and want to let the azure website connect with this db, I don't familar with cpanel, in general way the azure website request may be stopped by something, such as firewall etc.., as far as I
    know, the azure Hybrid Connections may meet your requirement, you can connect a website on Microsoft Azure to any on-premises resource that uses a static TCP port, such as SQL Server, MySQL, HTTP Web APIs, Mobile Services, and most custom Web Services, refer
    to
    http://azure.microsoft.com/en-us/documentation/articles/web-sites-hybrid-connection-get-started/ for more details, hope this helps, if not, please feel free to let me know.
    Best Regards,
    Jambor 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create database link from oracle DB to MySql database using dg4odbc

    Hi All
    we need to fetch a data of MySQL database from oracle database using dg4odbc connection.
    we are getting the below erros when we query select * from dual@myodbc;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02063: preceding line from BUGZILLA
    OS and database details as follow
    1. OS - OEL 5.9 32 bit
    2. Database - 11.2.0.1 XE
    3. MySQL -  5.5.32
    4. ODBC - dg4odbc
    5. unixODBC - 2.2.14
    6.MySQL Connector - 5.1
    kindly help me to get out of this issue.
    Thanks in Advance
    Regards
    Venkatesh V

    Hi All
    we need to fetch a data of MySQL database from oracle database using dg4odbc connection.
    we are getting the below erros when we query select * from dual@myodbc;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02063: preceding line from BUGZILLA
    OS and database details as follow
    1. OS - OEL 5.9 32 bit
    2. Database - 11.2.0.1 XE
    3. MySQL -  5.5.32
    4. ODBC - dg4odbc
    5. unixODBC - 2.2.14
    6.MySQL Connector - 5.1
    kindly help me to get out of this issue.
    Thanks in Advance
    Regards
    Venkatesh V

  • How to recover the old mysql database?

    Hi. I did un upgrade of my Leopard to Snow (not Server). I've made a "Carbon Copy" and erase all my HD to restart everything, as the old Lopard was allready "fat", malfunction, etc..
    I've forgot of MySQL! I'm re-installing but I'll have to export all databases I got online back to my machine (the oposite way). This is not really good because my local versions got users for testing only, less size for testing purposes... anyway, will be good take back my databases!
    I boot from the copy but Apache didn't start up, don't know why, this will be a hard job (couldn't be easy uhn, export all by phpmysql).
    I think the easy way is found the archives (the files that containing the databases) and copy back to newer installation...
    Any ideas?

    Hi
    When you boot from cloned backup, does mysql work in terminal?
    So open terminal, type mysql
    If yes then you can do a mysql dump to file then install on new setup.
    http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
    http://www.devarticles.com/c/a/MySQL/Backing-Up-Your-MySQL-Databases-With-MySQLD ump/
    This way you should not need apache running to move the sql files across.

  • Store links to uploaded files in mysql database

    Hello. What I'm trying to do is, let a user upload a file to my server, and lets other users download those files. I don't want to store the files in a database, because that will slooow things down. What I was wondering is how I would be able to store links to the files in the database, and let other users view them, and download them. I'm using apache tomcat, and MySQL.
    Any help would be appreciated. Thanks.

    I'm using a .jsp that uploads the files directly to my ROOT.
    This is the code for it:
    <html>
    <head><title>upload</title></head>
    <body>
    <%@ page import="java.io.*"%>
    <%
        String contentType = request.getContentType();
        if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
                    DataInputStream in = new DataInputStream(request.getInputStream());
                    int formDataLength = request.getContentLength();
                    byte dataBytes[] = new byte[formDataLength];
                    int byteRead = 0;
                    int totalBytesRead = 0;
                  while (totalBytesRead < formDataLength) {
                      byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
                         totalBytesRead += byteRead;
                    String file = new String(dataBytes);
                    String saveFile = file.substring(file.indexOf("filename=\"") + 10);
                  saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
                  saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
                    int lastIndex = contentType.lastIndexOf("=");
                    String boundary = contentType.substring(lastIndex + 1,contentType.length());
                    int pos;
                 pos = file.indexOf("filename=\"");
                 pos = file.indexOf("\n", pos) + 1;
                 pos = file.indexOf("\n", pos) + 1;
                 pos = file.indexOf("\n", pos) + 1;
                   int boundaryLocation = file.indexOf(boundary, pos) - 4;
                    int startPos = ((file.substring(0, pos)).getBytes()).length;
                    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
                    String filepath=session.getServletContext().getRealPath("/")+saveFile;
                    FileOutputStream fileOut = new FileOutputStream(filepath);
                fileOut.write(dataBytes, startPos, (endPos - startPos));
                fileOut.flush();
                fileOut.close();
                out.println("File saved as " +saveFile);
    %>
    <!-- Starts Here -->
    <form method="post" ACTION="upload.jsp" name="uploadForm" ENCTYPE='multipart/form-data'>
    <input type="file" name="uploadfile" />
    <p>
        <input type="submit" name="Submit" value="Submit">
        <input type="reset" name="Reset" value="Reset">
        <input type="hidden" name="action" value="upload">
    </p>
    </form>
    <!-- Ends Here -->
    </body>
    </html>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Having Trouble Linking mySQL Database to Website

    I am considering a move of all my websites into Azure and setup a test account this afternoon with the free trial.  I've been able to setup the website; however, I'm having issues with the creation - more specifically the linkage - of a MySQL database
    to the site.  I've tried to link the database in a number of ways including both the existing and preview portals in addition to trying to create the new resource instead of linking. In each scenario the database is created but the linkage fails. 
    The message I keep getting is:
    Could not link resource '>DB Name>' to web site '<Site Name>'.
    Am I doing something wrong?

    hi sir,
    Thanks for you posting!
    Firstly, please make sure your MySQL database in host on Azure, not in your project.
    Secondly, if your database is create on Azure, I suggest you could try those step:
    1.delete the entire website
    2.create a new website and select add the existing MySQL database as a Linked Resource .
    Also, please see this similar issue post:
    http://stackoverflow.com/a/12198776
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Connecting with mysql database

    in order to place the component in the JFrame.
    we need to take the location (cooridinates values) of the component from the available mysql database.
    how to connect the database field values with our java program???
    give me some suggestion pls.....

    public void actionPerformed(ActionEvent e)
         //String x=txt1.getText();
         //String y=txt2.getText();
         String s ="(Select XPosition from data where parameter=ST01)";
         String s1 ="(Select YPosition from data where parameter=ST01)";
         int i = Integer.parseInt(s);
         int j = Integer.parseInt(s1);
         String str = e.getActionCommand();
         if(str.equals("btn1"))
              cr = new Circle();
              cr.setSize(30,30);
              cr.setLocation(i,j); // here its problem
              p2.add(cr);
              show();
    it shows the Event dispatch error....

  • PHP MySQL database

    How to send a number count to the PHP MySQL database everytime a details page is opened from the results page?

    Assuming your DB table named 'stats' has fields for article_id, hits and the article id is passed to the detail page through the URL parameter article_id then your query would look like this:
    mysql_select_db($database_XXXXXX, $XXXXXX);
    if (isset($_GET['article_id'])) {
    $article_id = $_GET['article_id'];
    $query_hits = sprintf("UPDATE stats
    SET hits = hits+1
    WHERE article_id = %s", GetSQLValueString($article_id, "int"));
    $hits = mysql_query($query_hits, $XXXXXX) or die(mysql_error());

  • Using mysql database on another machine without having mysql installed

    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..
    The main purpose of doing this is I am creating a Java program which uses a Mysql database and I want to know if I give it to someone else to use it do they have to install Mysql and all the package or can they simply start using it.
    Thanks a lot
    Sassan

    masijade. wrote:
    TuringPest wrote:
    masijade. wrote:
    Sasanpad wrote:
    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..No. Not only would it be in violation of the terms of your license, but a MySQL database is a client/server type setup. No MySQL binaries, no server, your client (jdbc) cannot connect.im just curious because im new to mysql myself, but what do you mean that its a violation of his license?
    do you mean for the commercial version?If he licenses his application under GPL, okay, no problem. Otherwise I read this quote
    Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.
    to mean that you are not allowed to distribute MySQL (or any part of it, unless your application is GPL licensed) with your application, and if he distributes even just the data directory, he is distributing at least a part of MySQL.
    Other's may not see it that way, but do you want to take the chance?The critical element is the word distribute. If he tries to embed MySQL in the application he is giving to his users, he's distributing it. Hence a violation of the license. That does not in any way prevent him from including scripts that when the application is installed goes out and runs the script on the user's installation of MySQL and builds the databases and whatnot his application needs on their MySQL installation.
    Now, for the OP. If all you're keeping up with is urls and such and you don't have hundreds of them. I wouldn't bother with a db at all. a properties file would actually serve your purposes, and xml would suit just fine. Of course you'd have to have access to the file system and such but no licensing issues at all.
    PS.

  • PDF to MySQL database

    So here is the enigma. I set up a PDF form with fields that are correctly bound to the backend MySQL database - i.e. the connections work, I see and can chose the correct table values, all seems well. The submit (add), update buttons seem to work fine (i.e. the xfa code is correct) since all the data dissapears from the form, but when I query the database, no data ?
    So where is the error? I get no error messages at all.
    Advice always appreciated. Not sure if this is a MySQL end issue or not.
    Shai

    So how familiar are you with MySQL databases? Having some issues and not getting anywhere from their forums. I did notice that I have to change the date format when sending data from PDF to MySQL db, since their syntax is yyyy-dd-mm
    I did take some screen shots at the database - see what you think where I am going wrong. No data is accepted at all. No Javascript error from the PDF file either. Connections work fine and data seems to go, but not reside in the db. I even tried to enter the data manually and still could not get it working.
    Thanks for the insight and help

  • MySQL database connection: Communications link failure Last packet sent to the server was 0 ms ago.

    Hello,
    I am trying to connect to an external MySQL database from within a bundle.
    But I keep getting this error:
    Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure Last packet sent to the server was 0 ms ago.)
    These are the details of my bundle:
    1)          Spring bundle(using Spring DM)
    2)          MySQL database is at port 7046 so my bean is as below:
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
                        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
                        <property name="url"  value="jdbc:mysql://instance13550.db.xeround.com:7046/jas" />
                        <property name="username" value="mysql" />
                        <property name="password" value="mysql" />
    </bean>
    My bundle connects to the mysql database from withina  local  felix installation. But when I put the same bundle within CQ I get the error.
    Please help.
    Karan

    I dont know the answer, but if you google for this, some articles listed might help:
    re: "Communications link failure Last packet sent to the server was"
    Note: I use 're:' which is short for 'reply',
    I think you will also be better off using preparedStatements. Dont forget to use preparedStatement.clearParameters() just before preparedStatements.setString() items in the loop
    Also, I question why you need to test having 1000 test users all banging away at your application at once. Chances are, most will be staring at your web page and only a few will ever hit the update/insert button
    within the same 100 milliseconds or so that your process takes to update.

  • How to get data into the mySQL database?

    First some background.
    I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark
    There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to add functionality to the site. With the current Excel based structure and over 420 entries, it is cumbersome for me to maintain, but also for users to find what they need.
    A MySQL based dynamic structure is a lot easier and offers vastly more selection capabilities, like selecting only records that meet specific criteria.
    Data submission is done with a form, that contains most of the relevant data, but the drawack is that people submitting their data are often not technically inclined, give wrong answers due to a lack of understanding or making typo's. The test results are attached in one or two separate .txt files, but often they have not read the instructions correctly or did something wrong, so these attached .txt files can not be trusted automatically, they have to be checked before inclusion.
    These were my initial thoughts:
    1. Data collection:
    To avoid spending all our energy and time  on correcting typo's, getting missing data, correcting errors, I am  investigating the use of CPU-Z in Ghost mode to create a .txt or .html  file that contains all relevant hardware info we need and even more. It gives all the info we currently have, but adds  data like number of memory sticks, DDR timings, stock clock speed and  BCLK setting, video card info and VRAM size, etc.
    To see what I mean, run CPU-Z, go to the About tab and press the Save Report button and look at the results.
    This can all be done without user intervention in an automatic way, but  maybe I need to add an Auto-It file to the test to make it all run as  desired.
    If this works and I'm able to extract the relevant data from the created  file and can insert it into the database, we may be in business for the  next version of PPBM5.5 or PPBM6. It does require a modification to the instructions, making them a lot  easier, because there is less data to fill out.
    2. Data submission:
    The submission form can be simplified if  the CPU-Z data can be used. We have to create an automatic way to attach  the created .html file from CPU-Z to the submission form and we have to  streamline the Output.txt and Output-MPE.txt files to be more easily included in the 'form.lib.php' file. It  currently is manual labor and very time consuming.
    3. Adding to Database:
    I have to find a way to create database  records from the Gmail forms I receive. All incoming mail messages need  to be checked on relevancy and if relevant, need to be added  automatically to the database and then offered for approval before final inclusion in the database. Data included in the database  will then include submission date and time, Email address,  IP address  used, plus links to the files submitted and available on the website.
    4. Publication of the database:
    After approval of new records from step  3, all updates will be automatically applied to the database and  accessible for users. I do not yet intend to introduce a user account ,  requesting login before all functionality is accessible. Too much trouble and administration.
    Queries should be possible on things like CPU (check box), so include  17-920, i7-930, i7-950 but exclude i7-980X and i7-990X, Size of memory  (check box), Overclocked (boolean, yes, no), SSD as OS disk, and similar  options.
    The biggest problem is to keep the color grading and statistical  indicators (Top, D9, Q3, Med, Q1 and D1) intact on dynamically generated  queries. Say you make a query which results in 20 observations, this  should show the related colors and legends. Next query results in 48 observations and of course the color grading and legends  do need to reflect that. Question in my mind, does the RPI remain  constant, independent of the query or does that need to be recalculated  on the basis of the query?
    Next thing is to allow a user to select a specific observation and by  simply clicking on it be shown, in a separate window (detail page) or  accordion, all the CPU-Z related information about the hardware.
    The graphs, Top-20 and MPE Gains, need to be dynamically adjusted, based on the query used.
    5. Ideally, external links:
    In an ideal situation, one could link the  CPU-Z data to external price databases, looking up current prices for  CPU, memory, video card, disks, raid controller, etc. to get instant  BFTB charts, based on the query made. But that is the next step.
    Situation now:
    I have a MySQL database that is easily updated with the new submissions. Simply create a .CSV flie from the submitted forms and import that into the database. The bulk of the initial work is done.Lots remain to be done as you can see above, but that is for a later time.
    Question:
    I have this table, that needs to be filled with data in the submitted and attached files. Mr. X submitted his data and can be uniquely identified by his "Ref_ID". He attached one or two files in .TXT format with the relevant test data. These files are stored on the server with a concatenated name:
    "Ref_ID","-","filename"
    Say his Ref-ID is: 20110204-6cf5 and his submitted file is called: Output(99).txt then the file can be found on the server as
    20110204-6cf5-Output(99).txt
    I need to be able to open that comma delimited file, the contents may look like this: "439","1036","819","531" and insert these contents into the relevant record and fields.
    Graphically,
    is what I want to achieve.
    This being my first exposure to PHP/MySQL, you can imagine I'm not clear on how to go from here.
    Added complication is that I actually have 5 numbers to insert per record and two calculated fields, Total Score and RPI should be calculated fields. Haven't yet figured out how to handle calculated fields, maybe only in the PHP/HTML code and not in the database.
    I hope someone can help me.

    You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
    http://www.youtube.com/user/phpacademy
    http://www.youtube.com/user/betterphp
    http://www.youtube.com/user/flashbuilding
    And many more on my channel here
    http://www.youtube.com/user/Whisperingonthewind
    CMS's are easier to maintain, add edit and delete content.
    I have also recently bought a Book by David Powers Training from the Source very helpful.
    Anyway hope you get it sorted.

  • Database Link to Mysql Database.

    Hi Guys.
    I need to Create a Database Link a Mysql database that is running over a Red Hat server to my Oracle 10g Database that is running over SUSE. I Have an Application server where the user runs forms and Report. The user access the Application Server that allow them to connect to Oracle Database because is a web Environtment. I would like to access MYSQL database to pull our some data to create a couple of Views for my Users.
    Thanks in Advance.
    Emmanuel
    PD: do I need to configure some ODBC or just modify my tnsname.ora file???

    add a space to each line in the SID section of your listener - only GTW_LISTENER and SID_LIST_GTW_LISTENER are valid commands to start at the first position in the file.
    In addition please remove that line from your gateway init file: HS_FDS_SHAREABLE_NAME=C:\Program Files\MySQL\Connector ODBC 5.2\myodbc5w.dll
    HS_FDS_SHAREABLE_NAME is used on Unix to specify the ODBC Driver Manager - as you're on Windows where Windoes ships a valid ODBC Driver Manager you don't need to specify that parameter.manager. In addition please remove the set ODBCINI parameter as the Windows ODBC Driver Manager uses the registry. So make sure you have created a 64bit ODBC system DSN using the 64bit MySQL ODBC driver (it has to be the 64bit ODBC driver as you're on a 64bit Windows using a 64bit DG4ODBC)
    - Klaus

  • Creation of Database link and access the same plus Snapshot creation

    i want talk between two oracle server. i decided to go for snapshot creation with periodical refresh. For which i am having two oracle server's with different ip address located inside our office setup.
    I have created a database link between two servers.
    first server name global
    userid scott
    password tiger
    second server name asil
    userid scott
    password tiger
    both the user have been given dba rights.
    in both the server the services and listners are all started. i gave the following command to create database link.
    from asil server
    create public database link global connect by scott identified by tiger using 'global'
    the command was successful and the link was created. Now i tried to access a table of the scott user of the global server.
    select * from emp@global;
    now it is giving error. I want to know how the link can be created and how it can be accessed. i refered the 8i online documentation and done the things based on that. i expect valuble solution from all possible persons
    null

    A reason for this problem could be that your database is configured that a database link has to have exactly the same name like the global name of the database instance it should connect to.
    Can you please provide the oracle error code / message ? With this information there might be more hints I can give you.

Maybe you are looking for