How to create config.inc  mysql

Create one program(install.jsp).In this form it should contain database name,server,username,password.Based on the given values it should create config.inc to store values(just this is simple note pad file).after this cteate one index.jsp page which should just connect to the database(use config.inc here) and display whether it is connected or not.

solution .........?The problem ?

Similar Messages

  • How to create php/apache/mysql installer with AIR

    Dear Flexer,
    I'd like to use AIR to create my own web tools installer (like mamp, wammp...).
    But I have no idea how to do that.
    Can you help me?
    Thanks

    There's a tutorial here:
    http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx
    That said, why go through all the trouble? There are a number of applications out there than install and configure Apache, PHP, and MySQL for you.

  • How to create table using mysql in LabVIEW

    Hii
               I am using mysql database Toolkit for my project.  In that how to New create a table. Is there any possiblilites to create a table using query...can u send a sample prg ... and inform which toolkit Vi to use....  

    The SQL syntax for creating a table is:
    CREATE TABLE table_name
    column_name1 data_type,
    column_name2 data_type,
    column_name3 data_type,
    )The toolkit has a funciton called DB Tools Create Table. That would be the obvious function to use if you don't want to execute a SQL query to create the table. The tooklit comes with examples. Have you looked at them? There's one called Create Database Table that  would seem to be exactly what you are looking for.

  • How to create a table in mysql tool kit

    Hello Sir/Madam,
    H                       
                                    How to create a table in mysql using the labview tool kit,,,I need the hyperlink to download this tool kit,
    Thanks and regards
    Jack 
    Jayavel

    quick search
    study and ask if further specific help needed

  • How to create a comment in config.ini file

    Does anyone know how to create a comment line in the Essbase config.ini file (server config file, not client, if they are different)?I know that for ESSCMD it is :Calcs it is /*but not sure of syntax for commenting config files. Thanks in advance!

    The comment character for the essbase.cfg file (I assume that is what you are talking about) is a semi-colon (;)Regards,Jade-----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • How to create a custom Config Mgr 2012 R2 SCOM Dashboard

    Has anyone blogged on how to create a Config Manager 2012 dashboard in Operations Manager 2012? Or have some information they are happy to share?
    This blog has some information:
    http://blogs.technet.com/b/kevinholman/archive/2012/12/11/monitoring-configmgr-2012-with-opsmgr.aspx
    However its more of an overview rather than how you construct it.
    I would appreciate anyone willing to post some information on how they have setup their own and what they are monitoring.
    We have installed the Config Manager management pack with default tuning. At the moment, I have something like this setup, however its not showing any data yet as the Ops Mgr clients are still collecting data.
    Cheers
    Damon

    Hi,
    This technet article might be of more help.
    Introducing Operations Manager 2012 Dashboards
    http://blogs.technet.com/b/momteam/archive/2011/09/27/introducing-operations-manager-2012-dashboards.aspx
    Otherwise, your question seems to be related to SCOM 2012. You may also choose to post there to get more effictive help.

  • How to create table with jsp in mysql

    Hi, every one,
    I just want to know how to create a table with jsp in mysql, please.
    Thanks in advance

    I have got the same question. I tried to pass sql "Create table" statement, but the servlet engine (tomcat4) threw an error "could not manipulet statement.execute". It works for normal SQL select statement.
    Anyone got the same problem ? or got a solution for this ? someone told me that PHP can do it, but just want to get it works with JSP.

  • How to create a DSN Less Connection using MySQL

    Hi All
    How to create a DSN Less Connection using MySQL?
    http://www.caucho.com/projects/jdbc-mysql/index.xtp and downloaded Caucho driver and installed the jar ---- caucho-jdbc-mysql-0.2.7.jar in my classpath..
    this is how i embedded the code
    try
    driver = (Driver) Class.forName("com.caucho-jdbc-mysql-0.2.7.Driver").newInstance();
    catch (Exception e)
    lastErr = "Cannot load the driver, reason:"+e.toString();
    nothing seems to work with code..
    Unable to proceed..Any piece of code would be of great help..
    Thanks and regds
    Gautam

    According to the installation instructions for that driver:
    The driver is com.caucho.jdbc.mysql.Driver
    The url is jdbc:mysql-caucho://hostname:port/database
    You used something else for the driver name. So it doesn't work. By the way, I found those instructions here: http://www.caucho.com/projects/jdbc-mysql/

  • How to create Mysql like table with LinkedList or LinkedHashMap

    Is it possible to create a class which can create tables like Mysql tables? Take the following table as an example,
    0, LastName0, FirstNam0, Ag0, Phon0
    1, LastName1, FirstNam1, Ag1, Phon1
    2, LastName2, FirstNam2, Ag2, Phon2
    It's very easy to create a table in MySql with the following data. Now what if I want to create a table in the memory, so I can retrieve or SORT it whichever way I want. I might want to sort it by lastname or by phone number.
    Is it possible to do that with LinkedList or LinkedHashMap?

    1. Create a class with the fields lastName, firstName, age, phone of appropriate types
    2. Create objects of this and put in some type of a collections (ArrayList, Vector)
    3. Sort it using Collections.sort. Use a Comparator that compares the fields of interest

  • How do I fix this MySQL Warning? (Apple Mac Tiger 10.4)

    'Your configuration file contains settings (root with no
    password) that
    correspond to the default MySQL privileged account. Your
    MySQL server is
    running with this default, is open to intrusion, and you
    really should
    fix this security hole.'
    I obviously need to amend the mySQL password locally and get
    phpMyAdmin
    'config' file configured to accept the connection to mySQL.
    I've tried a couple of ways via the 'terminal' to change the
    mySQL
    password but I get so far and it breaks down from what is
    shown in the
    tutorial.
    Plus I have no idea how the phpMyAdmin 'config' file should
    look. Seems
    a lot more complex now than a previous version I was using. I
    just need
    the minimum info in that file to get phpMyAdmin and mySQL
    playing
    together. I am connected to mySQl at the moment but
    presumably that's is
    through the 'sample' config file in phpMYAdmin.
    Anyone had any experience of the correct way?
    Its not urgent but if anyone knows at some stage I'd like to
    get this
    fixed up.
    Done it before with ease on Jaguar OS via the instructions in
    Dave
    Powers book but those instructions look to be out of date
    now. Two years
    onwards I guess they would be.
    On the other hand does it really matter as I am the only
    person using
    this machine and is a pass really necessary?
    Cheers
    Os

    David Powers wrote:
    > Osgood wrote:
    >> Although I can set a database up in phpMyAdmin when
    I try to connect
    >> to mySQL via Dreamweaver it tells me 'access is
    denied' presumably
    >> because I haven't set up a password.
    >
    > Dreamweaver doesn't require a password.
    Humm it denied me access when I tried to connect to the mySQL
    server.
    Maybe that's because I used 'root' in the password field
    though.
    > I no longer have OS X 10.4 installed, but it worked
    exactly as described
    > in that book (with updates).
    I don't quite know what went wrong then. I couldn't open the
    .profiles
    file so I followed the next procedure and the terminal just
    reported
    '-bash: command not found. I wasn't getting the msql>
    prompt.
    I tired it on several occasions. Something was wrong
    somewhere, not your
    tutorial because I tried a few other methods to change the
    root password
    which were not working either.
    The only thing I can think of is when I tried the pico method
    as
    described on the weblink you gave it somehow unblocked the
    terminal. I
    went back after that and repeated the steps again as outlined
    in your
    book PHP for Dreamweaver 8 and it all worked save for I still
    could not
    update the .profiles file in the 'home' folder.
    OS X 10.5 is a different kettle of fish. I
    > understand there have been a lot of problems with MySQL.
    Since I use a
    > Mac only for occasional testing, I haven't bothered
    installing MySQL
    > until the problems get sorted out.
    Right...well I won't go there just yet then.
    > If you're having difficulty with the
    PHP/MySQL/phpMyAdmin setup, I
    > suggest trying MAMP. I have test installed it on a
    couple of occasions,
    > and it seems to work very well. A lot of other Mac users
    like it, too.
    Oh well it all seems to be up and running now fortunately.
    Thanks for 'hanging in there with me man' the web link proved
    to be
    useful for configuring the config.inc/php file in the
    phpMyAdmin folder.
    I can sleep this weekend now knowing I'm fully functional.
    Now I've just
    got to remember how to get stuff out of the database and onto
    the page lol.
    Cheers
    Have a great weekend
    Os.

  • How to create a multi-level configuration sales order?

    Hi,
        My client use configurable material to sell computers. And the production mode is MTO. One sales order item correspond with a production order
        Now my client also sell array which consist of two computers, two storage, one UPS power etc. That means I must realize multi-level configuration. First, choose the computer type. Second, based on the choosed computer in first step, choose the cpu, disk and so on. And then based on the sales order item, there must be several production order related to the same sales order item.
        Now I have semi-finished product B1,B2--computer. Class type is 300. Many characteristics is allocated to the class. B type material has the BOM which consist of cpu,disk etc.
        Then I created the finished product A--array. Class type is 300. Allocated characteristics is the B1,B2. A has the BOM which consist of B1,B2 etc.
        When I create sales order, I can only config the first level,choose computers for A, can not choose cpu,disk for computers.
        So, how can I find a solution for this scenario?
        Thanks in advance.

    Thanks, Waza
    1.  Does the Sales order BOM explode in the sales order?
    No. Just one top item would be ok for my client.
    2. Why do thy want this in the sales order?  They can explode the BOM in the production order, do they then need pricing at the component level?
    They do not need pricing at the component level. Exploding the BOM in the production order is acceptable. But how can I config the configurable material in components of production order?
    I tried collective order, but the second level of configurable material can not generate production order. I just make use of special procurement 52 in MRP2 of top finished product. Is there something I missed?
    Thanks again.

  • How to create an encrypted key for a user table

    I have an airshow website where volunteers and vendors can apply online (www.hollisterairshow.com) . The city attorney requires that we have a wet signature on a printed application form so the volunteer/ vendor currently has to print their application at the time they apply online, then sign it and mail it in and this works fine. Unfortunately, we have had a lot of instances where volunteers/ vendors needed to print their application again and the only way we could do this was for an administrator to print their application to a pdf file and e-mail the file to them. So, I'd like to improve this process by automatically sending an e-mail to the applicant when they apply online with a link to a printable page and containing a key pointing to their application. This way, volunteers/ vendors could print and sign their application whenever they want and as many times as they need to. Each volunteer is a single row in a volunteer table and each vendor is a single row in a vendor table.
    The key I use in the tables is a sequential key automatically incremented by MySQL so I would end up sending them a link looking something like www.hollisterairshow.com/printvolunteerapp.php?volunteernumber=27 . This would work, but it wouldn't be hard for a volunteer to change it to a different volunteernumber and so get access to someone else's personal information, which would not be acceptable. So, I'm thinking I need a secondary key that is somehow scrambled and used as an secondary index in the table so I'd be sending a link that mght look like www.hollisterairshow.com/printvolunteerapp.php?volunteerkey=sygew . So I'd really appreciate some advice on how to create a scrambled secondary index for each volunteer or vendor and plug it into the link I send them in the e-mail.
    Thanks for any advice.
    Tony

    Your question is not clear whether you want to create account or you want to create agent.
    For creating local agent you can refer
    http://bhabaniranjan.com/configure-odi-11g-local-agent/
    For creating EE Agent you can refer
    http://bhabaniranjan.com/configure-odi-java-ee-agent-on-windows-server-2008-64-bit/
    For creating account, login to supervisor and then go to security tab. There you can create different user to login to odi Studio. Let me know If i understand you correctly or not.
    Thanks.

  • How to create a new field for Q3 - QM notification in Header and item level

    Dear All,
    l
               Sub: How to create a new field for Q3 - QM notification in Header and item level
    Ref. the link --> Quality Notification
    We want to create a new field in header level and item level.
    As per the thread the solution is given below.
    In the IMG Config: Quality Management -> Quality Notification -> Notification Types -> Define screen areas for notification types Then Choose 'Define screen areas' Then Click on 'New entries' button Now, select the relevant Notification Type and click in 'Enter'. Select the 'Iten Cases' register and remember to setup the Tabstrip Header, Icon, etc. Set the 'Tabstrip active' flag. Then Save.
    Quality Notification -> Notification Types -> Define screen areas for notification types
    WE ARE UNABLE TO FIND IN CUSTOMIZATION PATH --> DEFINE SCREEN AREAS FOR NOTIFICATION TYPES.
    Please help.
    Question No. 2 :
    THE REQUIREMENT IS GIVEN BELOW.
    We want to hide the field in Q3 - QM Notification
    In header --> Reference tab --> Item (sub heading) --> "DEFECT LOCATION" FIELD TO BE ELIMINATED (HIDE)
    Ref the link --> Quality notification
    The solutiion is given below.
    Hi Sami,
    We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
    Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
    Hope this will suffice your requirement.
    Kindly ask me if you need any other details.
    Thanks & Regards,
    Srinivas.D
    Hi Sami,
    We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
    Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
    Hope this will suffice your requirement.
    Kindly ask me if you need any other details.
    Thanks & Regards,
    Srinivas.D
    By double clicking the "DEFECTIVE QUANTITY (EXTERNAL), WE COULD NOT GET --> field TXTCDOT .
    Plese do the needful.
    We are using ECC6.0 Ehp3 and Ehp4.
    With Best Regards,
    Raghu Sharma

    Dear Pushpa,
    Transaction Code :SHD0 is working fine.
    Please accept my sincere thanks for your sharing your Knowledge.
    I am able to fulfill my
    Regarding the enhancement, I have not tried.
    Once I will complete, I will award the fulll marks to you.
    With Best Regards,
    Raghu Sharma

  • How to create a procedure in oracle to write the data into file

    Hi All,
    I am just wondered on how to create a procedure which will do following tasks:
    1. Concat the field names
    2. Union all the particular fields
    3. Convert the date field into IST
    4. Prepare the statement
    5. write the data into a file
    Basically what I am trying to achieve is to convert one mysql proc to oracle. MySQL Proc is as follows:
    DELIMITER $$
    USE `jioworld`$$
    DROP PROCEDURE IF EXISTS `usersReport`$$
    CREATE DEFINER=`root`@`%` PROCEDURE `usersReport`(IN pathFile VARCHAR(255),IN startDate TIMESTAMP,IN endDate TIMESTAMP )
    BEGIN
    SET @a= CONCAT("(SELECT 'User ID','Account ID','Gender','Birthdate','Account Registered On') UNION ALL (SELECT IFNULL(a.riluid,''),IFNULL(a.rilaccountid,''),IFNULL(a.gender,''),IFNULL(a.birthdate,''),IFNULL(CONVERT_TZ(a.creationDate,'+0:00','+5:30'),'') INTO OUTFILE '",pathFile,"' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM account_ a where a.creationDate>='",startDate,"' and a.creationdate <='",endDate,"')");
    PREPARE stmt FROM @a;
    EXECUTE stmt;
    DEALLOCATE PREPARE stmt ;
    END$$
    DELIMITER ;
    Regards,
    Vishal G

    1. Concat the field names
    Double Pipe (||) is the concatenation operator in Oracle. There is also a function CONCAT for this purpose
    2. Union all the particular fields
    Not sure what do you mean by UNION ALL particular fields? UNION ALL is a set operation applied on two different result sets that have the same projection.
    3. Convert the date field into IST
    SQL> select systimestamp "Default Time"
      2       , systimestamp at time zone 'Asia/Calcutta' "IST Time"
      3    from dual;
    Default Time                                       IST Time
    05-05-15 03:14:52.346099 AM -04:00                 05-05-15 12:44:52.346099 PM ASIA/CALCUTTA
    4. Prepare the statement
    What do you mean by prepare the statement?
    5. write the data into a file
    You can use the API UTL_FILE to write to a file.

  • How to create a connection pooling in Netbeans 6.0 using the oracle driver

    hi all,
    I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
    I tried to create a connection pooling using tomcat web server.
    I have included the following code in context.xml and web.xml.
    CONTEXT.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/network1">
    <Resource name="jdbc/myoracle"
    auth="Container"
    type="javax.sql.DataSource"
    username="scott"
    password="tiger"
    factory="BasicDataSourceFactory"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
    maxActive="20"
    maxIdle="10"
    maxwait="-1"/>
    </Context>
    WEB.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
    classes 111.jar,
    classes 111_g.jar
    classes12.jar
    classes 12_g.jar
    classes12dms.jar
    classes12dms_g.jar
    nls_charset11.jar
    nls_charset12.jar
    ocrs12.jar
    ojdbc14.jar
    ojdbc14_g.jar
    Then i stop the tomcat web server and start it again.
    In jsp page i have included the following code:
    Context ctx=new InitialContext();
    Context envctx=(Context)ctx.lookup("java:comp:env");
    DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
    Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
    please help me how to create a connection pooling and rectify the error in conneciton.
    Thanks in advance

    Please refer
    http://www.netbeans.org/kb/60/web/customer-book.html

Maybe you are looking for

  • Mail delivered to wrong recipient

    The backend is GW 8.0.2, clients are GW7.0.4, although I don't think the problem is client related. We recently made two changes: 1. Changed the preferred SMTP domain name from xyz.com to abc.com (examples, obviously) 2. Changed the preferred address

  • Marker comments not being saved

    I've been adding markers and then comments to those markers in the source panel on clips from the project pane.  The marker comments show up in the markers pane.  However, upon opening a new clip and then returning to the clip with markers, all of th

  • My Razr maxx hd keeps dropping calls daily no matter where I am. How can I fix this?

    This phone keeps dropping calls a few minutes in most of the time. I am tempted to tossing this phone out and switching to iPhone but I loved the droids since the beginning. This has been happening for the last year and now I am tired of it. This pho

  • Error in replication sales order from CRM 5 to ECC 6

    Hi, I am new to the middleware When I am trying to replicate the sales order from CRM 5 to ECC 6, i found the following error in SMW01 “R/3 adapter is called Message no. CRM_ORDER_MISC024 I am unable to track what may be the problem and even I have c

  • Crash using Timestamps

    Hi, I have (at last!) a simple program that accesses a simple DB. I have one table that contains a column of type TIMESTAMP. I want to use this timestamp eventually to select a range of data (perhaps using between or something like that). But to test