mantisbt:systemi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mantisbt:systemi [2007/02/01 16:03] – slashsplat | mantisbt:systemi [2011/12/14 14:54] (current) – The page rendering was broken (maybe since new PHP version on mantisbt.org). Added new line to fix it at end of file. atrol | ||
---|---|---|---|
Line 3: | Line 3: | ||
Mantis support for IBM System i platform (AS/400, iSeries) and DB2. | Mantis support for IBM System i platform (AS/400, iSeries) and DB2. | ||
- | * [[MySQLi5|Installing MySQL on System i]] | + | ===== [[MySQLi5|Installing MySQL on System i]] ===== |
http:// | http:// | ||
Line 142: | Line 143: | ||
---- | ---- | ||
---- | ---- | ||
- | * [[Mantisi5|Installing MANTIS]] | + | ===== [[Mantisi5|Installing MANTIS]] |
Obtain the latest stable version of Mantis from http:// | Obtain the latest stable version of Mantis from http:// | ||
Line 221: | Line 223: | ||
---- | ---- | ||
- | * [[DB2i5|Using native i5 DB2/400]] | + | ===== [[DB2i5|Using native i5 DB2/ |
+ | |||
+ | Issues of concern 2007-02-06 | ||
+ | |||
+ | ==== A. install.php user error ==== | ||
+ | |||
+ | === NOTE: / | ||
+ | |||
+ | / | ||
+ | |||
+ | db2 (experimental)\\ | ||
+ | ## system database name from DSPRDBDIRE AS/400 command " | ||
+ | S1071FDD\\ | ||
+ | PHP_IRA\\ | ||
+ | p0okmju7yg\\ | ||
+ | ## I tested with incrementing numbers for xxx, got up to 024, use a new one each time you run install.php\\ | ||
+ | MANTISxxx\\ | ||
+ | ## BOTH pw's are required, you cannot leave user blank\\ | ||
+ | PHP_IRA\\ | ||
+ | p0okmju7yg\\ | ||
+ | ## box below is unchecked\\ | ||
+ | [ ] Print SQL...\\ | ||
+ | ## then click\\ | ||
+ | [Install...]\\ | ||
+ | |||
+ | The LIBRARY *IS* being created with the database collection and journal, but the tables and indexes are not. The database is created by the admin but the tables are made by the user. The diff in the code for the two operations is: | ||
+ | |||
+ | FROM: / | ||
+ | TO CREATE DB which works | ||
+ | $g_db = ADONewConnection( $f_db_type ); | ||
+ | | ||
+ | |||
+ | The 9th green message at the top of the screen shows that the " | ||
+ | |||
+ | TO CREATE TABLES that does not | ||
+ | $g_db = ADONewConnection($f_db_type); | ||
+ | $t_result = @$g_db-> | ||
+ | |||
+ | The f_db_type is db2 for both. Then I tried using the SAME id and pw: | ||
+ | $t_result = @$g_db-> | ||
+ | |||
+ | And that does not work either. | ||
+ | $t_result = @$g_db-> | ||
+ | |||
+ | And that does not work either. | ||
+ | Database user doesn' | ||
+ | |||
+ | Makes no sense as the [] parms are correct. | ||
+ | |||
+ | |||
+ | ==== B. MD5 missing ==== | ||
+ | |||
+ | Enabled mcrypt/ | ||
+ | " | ||
+ | I had this with the MySQL install also! | ||
+ | |||
+ | |||
+ | ==== C. db2_tables error ==== | ||
+ | |||
+ | Install.php ERROR:\\ | ||
+ | SYSTEM WARNING: db2_tables() expects parameter 1 to be resource, boolean given | ||
+ | |||
+ | comes from FILE:\\ | ||
+ | / | ||
+ | |||
+ | function & | ||
+ | { | ||
+ | global $ADODB_FETCH_MODE; | ||
+ | $savem = $ADODB_FETCH_MODE; | ||
+ | $ADODB_FETCH_MODE = ADODB_FETCH_NUM; | ||
+ | $qid = db2_tables($this-> | ||
+ | |||
+ | I cannot figure this out and do not know if it affects issue A. | ||
+ | |||
+ | ==== D. Creating SQL database manually ==== | ||
+ | |||
+ | 1. Run the install.php to generate the SQL by checking the box. Copy and paste into a PC file editor. | ||
+ | |||
+ | 2. Removed formatting spaces to compact, as the SQL parser on the AS/400 has a length limit. | ||
+ | |||
+ | 3. Split any lines that exceeded 88. There are just a few. | ||
+ | |||
+ | 4. Add the required qualifier to tell DB2/400 WHERE to put the tables. | ||
+ | |||
+ | 5. Fix the error in the SQL generated: | ||
+ | |||
+ | |||
+ | 365 CREATE TABLE mantis011/ | ||
+ | ... | ||
+ | 371 date_created TIMESTAMP DEFAULT ' | ||
+ | 372 last_visit TIMESTAMP DEFAULT ' | ||
+ | ... | ||
+ | 380 | ||
+ | 381 ); | ||
+ | ERROR: | ||
+ | 395 INSERT INTO mantis_user_table(username, | ||
+ | ... | ||
+ | 399 ' | ||
+ | 400 ' | ||
+ | |||
+ | THIS:\\ | ||
+ | 399 ' | ||
+ | MUST BE:\\ | ||
+ | 399 ' | ||
+ | |||
+ | 6. Save the file as MANTISSQL on the PC | ||
+ | |||
+ | 7. Create a Source Physical File on the AS/400 | ||
+ | |||
+ | |||
+ | | ||
+ | Type choices, press Enter. | ||
+ | File . . . . . . . . . . . . . . > MANTISSQL | ||
+ | | ||
+ | Record length | ||
+ | Member, if desired . . . . . . . | ||
+ | Text ' | ||
+ | |||
+ | CRTSRCPF FILE(MANTIS011/ | ||
+ | |||
+ | 8. Add the working LIBRARY to your library list:\\ | ||
+ | addlible | ||
+ | |||
+ | 9. FTP the mantissql pc file tp MANTIS011/ | ||
+ | |||
+ | 230 ICHANDLER logged on. | ||
+ | ftp> cd mantis011 | ||
+ | 250 " | ||
+ | ftp> lcd md | ||
+ | Local directory now W: | ||
+ | ftp> pwd | ||
+ | 257 " | ||
+ | ftp> lcd | ||
+ | Local directory now W: | ||
+ | ftp> lcd md | ||
+ | Local directory now W: | ||
+ | ftp> put mantissql | ||
+ | 200 PORT subcommand request successful. | ||
+ | 150 Sending file to member MANTISSQL in file MANTISSQL in library MANTIS011. | ||
+ | 226 File transfer completed successfully. | ||
+ | ftp: 17753 bytes sent in 0.00Seconds 17753000.00Kbytes/ | ||
+ | |||
+ | 10. Once the file is in the source file on the AS/400, execute it by the Run SQL Statement command, shown prompted with F4: | ||
+ | |||
+ | Run SQL Statements (RUNSQLSTM) | ||
+ | Type choices, press Enter. | ||
+ | Source file . . . . . . . . . . > MANTISSQL | ||
+ | Library | ||
+ | Source member | ||
+ | Commitment control . . . . . . . > *ALL *CHG, *UR, | ||
+ | Naming . . . . . . . . . . . . . | ||
+ | |||
+ | And below in command line format: | ||
+ | RUNSQLSTM SRCFILE(MANTIS011/ | ||
+ | 11. Congratulations. | ||
- | http:// |
mantisbt/systemi.1170363835.txt.gz · Last modified: 2008/10/29 04:31 (external edit)