phpScheduleIt
May 18, 2013, 09:16:51 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Install problem  (Read 543 times)
jiopi
Newbie
*

Karma: 0
Posts: 9


« on: April 12, 2012, 11:55:32 AM »

When I'm usin the automated install,

Quote
1) Verify the following default settings before continuing. Or you can change them in /config/config.php.
Database Name: x_db
Database User: x_user (this is not any application user, but the user for your database: x_db)
Database Host: localhost (or localhost)
 
2) You MUST provide credentials of a MySQL user who has privileges to create databases. If you do not know, contact your database admin. In many cases, root will work.
MySQL User

Password
 
3) You are upgrading from version 2 to version 2.1

Quote
Executing: ../../database_schema/upgrades/2.1/schema.sql
Failed! Details...
SQL Statement:

ALTER TABLE `resources` ADD COLUMN `admin_group_id` SMALLINT(5) unsigned
Error Code:
1146
Error Text:
Table 'x_db.resources' doesn't exist
Executing: ../../database_schema/upgrades/2.1/data.sql
Failed! Details...
SQL Statement:
insert into roles values (3, 'Resource Admin', 3)
Error Code:
1146
Error Text:
Table 'x_db.roles' doesn't exist

What is the problem? Why is it trying to upgrade 2.0 to 2.1 when the packet is 2.1?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: April 12, 2012, 01:43:05 PM »

Just so I understand, did you already have 2.0 installed at one point?
Logged
jiopi
Newbie
*

Karma: 0
Posts: 9


« Reply #2 on: April 12, 2012, 02:21:46 PM »

Just so I understand, did you already have 2.0 installed at one point?
No.

I did create the mysql database x_db before the installation, is this correct?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #3 on: April 12, 2012, 02:22:15 PM »

Is this a server you own or a hosted site?
Logged
jiopi
Newbie
*

Karma: 0
Posts: 9


« Reply #4 on: April 12, 2012, 02:22:56 PM »

Is this a server you own or a hosted site?
Hosted.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #5 on: April 12, 2012, 02:37:18 PM »

I threw together some instructions for installing/upgrading in a hosted environment. In most cases, the automated install won't work because host's lock down database security.

Here's what you'll likely need to do:

Adding the database and user

    Select the MySQL Databases tool
    Add a new user with username and password of your choice. This will be the username and password used in your phpScheduleIt config file.
    Create a new database with whatever name you choose. This will be the name of the database in your phpScheduleIt config file. 'phpSchedlueIt2' is the recommended database name.
    Associate the new user with the new database, giving the user permission to SELECT, CREATE, UPDATE, INSERT and DELETE. Click the 'Add User to Db' button.

Creating tables

    Open phpMyAdmin.
    Click on the database name that you just created in the left panel.
    Click the SQL tab at the top of the page.
    Import "/database_schema/schema-utf8.sql" to phpscheduleit2
    Import "/database_schema/data-utf8.sql" to phpscheduleit2
Logged
jiopi
Newbie
*

Karma: 0
Posts: 9


« Reply #6 on: April 13, 2012, 05:45:14 AM »

I threw together some instructions for installing/upgrading in a hosted environment. In most cases, the automated install won't work because host's lock down database security.

Here's what you'll likely need to do:

Adding the database and user

    Select the MySQL Databases tool
    Add a new user with username and password of your choice. This will be the username and password used in your phpScheduleIt config file.
    Create a new database with whatever name you choose. This will be the name of the database in your phpScheduleIt config file. 'phpSchedlueIt2' is the recommended database name.
    Associate the new user with the new database, giving the user permission to SELECT, CREATE, UPDATE, INSERT and DELETE. Click the 'Add User to Db' button.

Creating tables

    Open phpMyAdmin.
    Click on the database name that you just created in the left panel.
    Click the SQL tab at the top of the page.
    Import "/database_schema/schema-utf8.sql" to phpscheduleit2
    Import "/database_schema/data-utf8.sql" to phpscheduleit2

I did that, but used import tool for importing, as those lines did not work. So now I should be able to use the program? But I can't log in? I have username and password in config.php, but those doesn't work.
Logged
jiopi
Newbie
*

Karma: 0
Posts: 9


« Reply #7 on: April 13, 2012, 06:00:49 AM »

Also there is no registration option anywhere.
Logged
jiopi
Newbie
*

Karma: 0
Posts: 9


« Reply #8 on: April 13, 2012, 06:18:44 AM »

Figured it out, I needed to still install with some of the three options, sample data worked. But when I used the

Create the user based on configuration /config/config.php (x_user)

it gives error message:

Quote
Executing: ../../database_schema/schema-utf8.sql
Succeeded!
Executing: ../../database_schema/create-user.sql

Failed! Details...
SQL Statement:
GRANT ALL on x_db.* to 'x_user'@'localhost' identified by 'password'
Error Code:
1044
Error Text:
Access denied for user 'x'@'localhost' to database 'x_db'


Executing: ../../database_schema/data-utf8.sql
Succeeded!

So it takes the _user part of the username when it tries to access. Is this a problem?
 
Logged
wingoo
Jr. Member
**

Karma: 0
Posts: 99


« Reply #9 on: April 13, 2012, 06:19:18 AM »

Edit the config file to allow self register, disable captcha, and then register using the email address you put in the config file as the admin email.

Once you have created your login, you can disable self register again if you want to create any future logins yourself rather than let them self register.

Hope this helps
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!