Whoville
Login
Register
Whoville
Login
Register
System Apps
Directory
Help
Language
Like Us
Public Stream
QRator
Random Channel
Report Bug
Search
Support Hubzilla
Database tables documentation
2024-11-02 13:49:44
View Profile
Hubzilla Support Forum
adminsforum@hubzilla.org
od
wrote the following
post
Sat, 02 Nov 2024 13:49:47 +0100
Database tables documentation
Is there documentation anywhere to describe the purpose of each table in the hubzilla postgresql database?
1
Link to Source
Link on Hub
2024-11-02 14:13:54
View Profile
SK
sk@utsukta.org
I could find this section in documentation which briefly describes what each table contains:
https://hub.utsukta.org/help/database
Link to Source
Link on Hub
2024-11-02 14:14:30
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
@
od
/help/database
Link to Source
Link on Hub
2024-11-02 14:53:33
View Profile
od
od@zotum.net
Channel id incremental count is now over 50. This is because of multiple instances of re-installation, accounts, channels, profiles, deleted and reused.
The database is now a mess. Does not matter as noone else affected.
Interestingly, discovered that even though the administrator account is deleted, able to sign in to a user account.
What needs to be deleted so that:
1. When entering the domain in the web browser, the process starts again with need to create an administrator account
2. All other history is deleted so that the channel id numbers start from 0?
Link to Source
Link on Hub
2024-11-02 16:07:48
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
@
od
How many active accounts and channels are there currently on the hub?
I don't think that the consecutive number of channel IDs will lead to problems.
If a fresh and new admin account is required, simply register a normal fresh account and then enter the value 4096 in the ‘account’ table in the ‘account_roles’ column in the DB. The account is now an administrator account.
Otherwise, only deleting all tables and re-initialising the table with a subsequent update_db would lead to a complete reset of the hub. However, I don't know whether this would cause any subsequent problems (apart from the fact that all hub data would be lost).
1
Link to Source
Link on Hub
2024-11-02 19:07:18
View Profile
od
od@zotum.net
Now only two, but curious to know which table is responsible for the automatic increase in 'account_id' every time a channel is deleted and then re-created with the same name.
Presumably the command 'DROP TABLE would do the deletion. A quick web search suggests to use a script.
How the command 'update_db' entered?
Is the '4096' value information in some administrator manual?
3
Link to Source
Expand Replies
Link on Hub
2024-11-02 19:42:15
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
@
od
Administration
Hubzilla FAQ
Site administration
Link to Source
Link on Hub
2024-11-03 11:13:20
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
@
od
Link to Source
Link on Hub
2024-11-03 11:28:09
View Profile
od
od@zotum.net
Unable to update
1
Link to Source
Expand Replies
Link on Hub
2024-11-03 11:34:23
View Profile
od
od@zotum.net
Within hubzilldomainname directory:
"
./install/schema_postgres.sql
./install/schema_postgres.sql: line 1: syntax error near unexpected token `('
./install/schema_postgres.sql: line 1: `CREATE TABLE "abconfig" ('
"
Instruction from 'install/INSTALL.txt'
"
...
- Database is populated.
If not, import the contents of "install/schema_xxxxx.sql" with phpmyadmin
or mysql command line (replace 'xxxxx' with your DB type).
...
"
1
Link to Source
Expand Replies
Link on Hub
2024-11-03 11:43:55
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
@
od
psql -U benutzername -d datenbankname -f schema_postgres.sql
1
Link to Source
Link on Hub
2024-11-03 11:46:48
View Profile
od
od@zotum.net
See error posted, perhaps delay with addition to this thread
Link to Source
Link on Hub
2024-11-03 11:48:40
View Profile
Alfred Bühler
abu@hub.alfredbuehler.ch
with phpmyadmin or mysql command line
Link to Source
Link on Hub
2024-11-03 11:54:13
View Profile
od
od@zotum.net
Sorry my mistake. Looks that the documentation should be:
"
...
or database command line (replace 'xxxxx' with your DB type)e.g.
psql -U benutzername -d datenbankname -f schema_postgres.sql
"
Good documentation, yet again not valued, to attract more participants...
Link to Source
Link on Hub
2024-11-03 12:05:16
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
This does not belong in the documentation, but is the responsibility of the administrator (e.g. to find out about the function and operation of a database).
Link to Source
Link on Hub
2024-11-03 12:14:55
View Profile
od
od@zotum.net
Disagree. All knowledge for hubzilla participants should be published in a open access. Let people decide for themselves, with _all_ the information available in the open, when they want to be a casual user, web server administrator, sometimes both.
Esoteric behaviour by programmers will not promote good software.
1
Link to Source
Expand Replies
Link on Hub
2024-11-03 13:14:36
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
I think that these explanations (on .htconfig.php and the database schema) already belong here and are sufficient.
Installing a hub manually is not necessarily something that should be recommended to an inexperienced user. However, if you have the basics, you will be able to follow the instructions and will be told what to do if the automatic setup process fails. How to edit a file (htconfig.php) and save it under a new name does not need to be explained. And the experienced admin should know how to import a database schema (or know where to look this up... namely in the documentation of the database they are using).
In my opinion, there is no harm in explaining simple steps in the user documentation (I even recommend it), but certain prerequisites should be assumed for the admin documentation... or at least the knowledge of where to look for information.
1
Link to Source
Link on Hub
2024-11-03 19:55:19
View Profile
od
od@zotum.net
Good quality documentation, means more users and programmers. There are many examples: apache, debian, arch.
If extant hubzilla programmers continue to be unable to improve documentation, the quality and number of contributors will continue to be very low after all these years.
2
Link to Source
Link on Hub
2024-11-03 23:57:31
View Profile
Scott M. Stolz
scott@loves.tech
We have several people working on documentation.
Link to Source
Link on Hub
Conversation Features
Loading...
Loading...
Conversation Features
Loading...
Loading...
Login
Email or nickname
Password
Remember me
Login
Password Reset
Remote Authentication
Register